From 1414087e8acd66f0f364883ca06c9c3b8d5f4cf6 Mon Sep 17 00:00:00 2001 From: Ashrindy Date: Sat, 4 Oct 2025 15:06:23 +0200 Subject: [PATCH] [Sonic Frontiers] Skippable Cutscenes (experimental) --- .../Skippable Cutscenes (experimental).hmm | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Source/Sonic Frontiers/Gameplay/Skippable Cutscenes (experimental).hmm diff --git a/Source/Sonic Frontiers/Gameplay/Skippable Cutscenes (experimental).hmm b/Source/Sonic Frontiers/Gameplay/Skippable Cutscenes (experimental).hmm new file mode 100644 index 0000000..ee37cfc --- /dev/null +++ b/Source/Sonic Frontiers/Gameplay/Skippable Cutscenes (experimental).hmm @@ -0,0 +1,31 @@ +Patch "Skippable Cutscenes (experimental)" in "Gameplay" by "Ashrindy" does +/* +Allows skipping for most unskippable cutscenes. +*/ +// + #lib "Memory" +// +{ + /* v1.42: 0x146D47329 */ + long jmpAddr0 = ScanSignature + ( + "\x74\x61\x48\x89\xD9\xCC\xCC\xCC\xCC\x40\xE8\xD8\xEC", + "xxxxx????xxxx" + ); + + if (jmpAddr0 == 0) + return; + + /* v1.42: 0x140148D42 */ + long jmpAddr1 = ScanSignature + ( + "\x74\x72\x48\x8B\x15\xCC\xCC\xCC\xCC\x48\x85\xD2\x74", + "xxxxx????xxxx" + ); + + if (jmpAddr1 == 0) + return; + + WriteNop(jmpAddr0, 2); + WriteNop(jmpAddr1, 2); +} \ No newline at end of file