Skip to content

Commit

Permalink
v2.0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiLko committed Oct 30, 2024
1 parent f3744f1 commit 341b6c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Fixed macro bot info saving bug.
* Fixed practice rotation bug.
* Actually capped render fps to 240 now lmao.
* I think render fps were never saving so it was always 60 no matter what u set it to.

# v2.0.0

Expand Down
2 changes: 1 addition & 1 deletion src/renderer/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class $modify(GJBaseGameLayer) {

if ((!g.renderer.recording && !g.renderer.recordingAudio) || !pl) return;

if (g.renderer.recording && frame % static_cast<int>(240.f / g.renderer.fps) == 1)
if (g.renderer.recording && frame % static_cast<int>(240.f / g.renderer.fps) == 0)
return g.renderer.handleRecording(pl, frame);

if (g.renderer.recordingAudio && !g.renderer.startedAudio) {
Expand Down
1 change: 1 addition & 0 deletions src/ui/record_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ void RecordLayer::textChanged(CCTextInputNode* node) {
if (std::string_view(fpsInput->getString()) != "" && node == fpsInput) {
if (std::stoi(fpsInput->getString()) > 240)
return fpsInput->setString(mod->getSavedValue<std::string>("render_fps").c_str());
mod->setSavedValue("render_fps", std::string(fpsInput->getString()));
}

if (!speedhackInput) return;
Expand Down

0 comments on commit 341b6c6

Please sign in to comment.