Skip to content

Commit

Permalink
fix: incorrect names
Browse files Browse the repository at this point in the history
  • Loading branch information
EtoShinya committed Apr 2, 2024
1 parent 7118a58 commit be6cce8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/game/Render/Gui/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void Gui::Render()
ImGui::SliderInt("FPS", &vars.i_FPS, 5, 360, "%d");
ImGui::CheckboxFill("Fov Changer", &vars.b_FovChanger);
if (vars.b_FovChanger)
ImGui::SliderFloat("Fov", &vars.i_Fov, 1.0f, 360.0f, "%.1f");
ImGui::SliderFloat("Fov", &vars.f_Fov, 1.0f, 360.0f, "%.1f");

ImGui::CheckboxFill("Skip Intro Movie", &vars.b_SkipIntroMovie); HELPMAKER("This will skip the intro movie when you start the game");

Expand Down
2 changes: 1 addition & 1 deletion src/game/appdata/il2cpp-functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ DO_APP_FUNC(0x0202DAF0, String*, Marshal_PtrToStringAnsi, (void* ptr, MethodInfo
DO_APP_FUNC(0x0202DB10, String*, Marshal_PtrToStringUni, (void* ptr, MethodInfo* method));

// FovChanger
DO_APP_FUNC(0x301C600, void, Camera_set_fieldOfView, (void* __this, float value, MethodInfo* method));
DO_APP_FUNC(0x0301C600, void, Camera_set_fieldOfView, (void* __this, float value, MethodInfo* method));

// FPSUnlock
DO_APP_FUNC(0x03015300, int, Application_get_targetFrameRate, (MethodInfo* method));
Expand Down
2 changes: 1 addition & 1 deletion src/game/cheat/features/FovChanger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Cheat::Features
void FovChanger::Camera_set_fieldOfView_Hook(void* __this, float value, MethodInfo* method)
{
if (vars.b_FovChanger)
value = vars.i_Fov;
value = vars.f_Fov;
CALL_ORIGIN(Camera_set_fieldOfView_Hook, __this, value, method);
}
}
2 changes: 1 addition & 1 deletion src/game/cheat/vars.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct Vars
bool b_FPSUnlock = true;
int i_FPS = 120;
bool b_FovChanger = false;
float i_Fov = 60.0f;
float f_Fov = 60.0f;

bool b_SkipIntroMovie = true;
};
Expand Down

0 comments on commit be6cce8

Please sign in to comment.