Skip to content

Commit a5693a5

Browse files
authored
Merge pull request #5 from emoose/update2
Cutscene Framerate Unlock: add fix for update 2
2 parents 7c0e1d2 + 3675bc9 commit a5693a5

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
@@ -378,7 +378,16 @@ void Framerate()
378378
spdlog::info("Cutscene Framerate Unlock: Enabled framerate unlock.");
379379
}
380380
else {
381-
spdlog::error("Cutscene Framerate Unlock: Pattern scan failed.");
381+
// Update 2 added extra checks around where we patch, check for those separately
382+
CutsceneFramerateScanResult = Memory::PatternScan(exeModule, "48 8B 41 28 48 39 98 08 03 00 00 75 1C");
383+
if (CutsceneFramerateScanResult) {
384+
spdlog::info("Cutscene Framerate Unlock (Upd2): Address is {:s}+{:x}", sExeName.c_str(), CutsceneFramerateScanResult - (std::uint8_t*)exeModule);
385+
Memory::PatchBytes(CutsceneFramerateScanResult + 0xB, "\x90\x90", 2);
386+
spdlog::info("Cutscene Framerate Unlock (Upd2): Enabled framerate unlock.");
387+
}
388+
else {
389+
spdlog::error("Cutscene Framerate Unlock: Pattern scan failed.");
390+
}
382391
}
383392
}
384393
}

0 commit comments

Comments
 (0)