Skip to content

Commit

Permalink
fix mod
Browse files Browse the repository at this point in the history
  • Loading branch information
ComputerElite authored Apr 1, 2022
1 parent 594e523 commit af7d13d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ bool replay = false;
float rotated = 0.0f;
int framesPressed = 0;

MAKE_HOOK_MATCH(LightManager_OnWillRenderObject, &LightManager::OnWillRenderObject, void, LightManager* self) {
MAKE_HOOK_MATCH(LightManager_OnWillRenderObject, &LightManager::OnCameraPreRender, void, LightManager* self, UnityEngine::Camera* camera) {
// Do stuff when this function is called
LightManager_OnWillRenderObject(self);
LightManager_OnWillRenderObject(self, camera);
//if(!(getConfig().config["Active"].GetBool()) || replay) return;
if(!getModConfig().Active.GetValue()) return;
UnityEngine::Camera* c = UnityEngine::Camera::get_main();
Expand Down

0 comments on commit af7d13d

Please sign in to comment.