Skip to content

Commit 3675bc9

Browse files
committed
Cutscene Framerate Unlock: add fix for update 2
1 parent 865c35a commit 3675bc9

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/dllmain.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,16 @@ void Framerate()
383383
spdlog::info("Cutscene Framerate Unlock: Enabled framerate unlock.");
384384
}
385385
else {
386-
spdlog::error("Cutscene Framerate Unlock: Pattern scan failed.");
386+
// Update 2 added extra checks around where we patch, check for those separately
387+
CutsceneFramerateScanResult = Memory::PatternScan(exeModule, "48 8B 41 28 48 39 98 08 03 00 00 75 1C");
388+
if (CutsceneFramerateScanResult) {
389+
spdlog::info("Cutscene Framerate Unlock (Upd2): Address is {:s}+{:x}", sExeName.c_str(), CutsceneFramerateScanResult - (std::uint8_t*)exeModule);
390+
Memory::PatchBytes(CutsceneFramerateScanResult + 0xB, "\x90\x90", 2);
391+
spdlog::info("Cutscene Framerate Unlock (Upd2): Enabled framerate unlock.");
392+
}
393+
else {
394+
spdlog::error("Cutscene Framerate Unlock: Pattern scan failed.");
395+
}
387396
}
388397
}
389398
}

0 commit comments

Comments
 (0)