File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments