From 52085fe8fcab3b7f45aa11d35d880170e7770f81 Mon Sep 17 00:00:00 2001 From: Hyper <34012267+HyperBE32@users.noreply.github.com> Date: Thu, 8 Apr 2021 00:00:46 +0100 Subject: [PATCH] [Sonic Boom] Added patch support for other revisions (#515) --- .../DevLevelSelect/patch_DevLevelSelect.asm | 34 ++++++++++++++++--- .../patch_DisableIntroLogos.asm | 20 ++++++++++- .../patch_UnlimitFramerate.asm | 18 ++++++++-- 3 files changed, 63 insertions(+), 9 deletions(-) diff --git a/src/SonicBoomRiseOfLyric/Mods/DevLevelSelect/patch_DevLevelSelect.asm b/src/SonicBoomRiseOfLyric/Mods/DevLevelSelect/patch_DevLevelSelect.asm index e19dd193..618e3780 100644 --- a/src/SonicBoomRiseOfLyric/Mods/DevLevelSelect/patch_DevLevelSelect.asm +++ b/src/SonicBoomRiseOfLyric/Mods/DevLevelSelect/patch_DevLevelSelect.asm @@ -1,4 +1,4 @@ -[WiiULauncher0] +[WiiULauncher0US] moduleMatches = 0x90DAC5CE ; Enable sys_brbdebug @@ -6,9 +6,33 @@ moduleMatches = 0x90DAC5CE DevLevelSelect: li r5, 1 bctrl -b 0x02C9B978 +b 0x2C9B978 -0x02C9B974 = b DevLevelSelect +0x2C9B974 = b DevLevelSelect + +[WiiULauncher0EU] +moduleMatches = 0x8F7D2702 + +; Enable sys_brbdebug +.origin = codecave +DevLevelSelect: +li r5, 1 +bctrl +b 0x2C9B958 + +0x2C9B954 = b DevLevelSelect + +[WiiULauncher0JP] +moduleMatches = 0x0D395735 + +; Enable sys_brbdebug +.origin = codecave +DevLevelSelect: +li r5, 1 +bctrl +b 0x2C9B990 + +0x2C9B98C = b DevLevelSelect [WiiULauncher16] moduleMatches = 0x113CC316 @@ -18,6 +42,6 @@ moduleMatches = 0x113CC316 DevLevelSelect: li r5, 1 bctrl -b 0x02C9B9B0 +b 0x2C9B9B0 -0x02C9B9AC = b DevLevelSelect +0x2C9B9AC = b DevLevelSelect diff --git a/src/SonicBoomRiseOfLyric/Mods/DisableIntroLogos/patch_DisableIntroLogos.asm b/src/SonicBoomRiseOfLyric/Mods/DisableIntroLogos/patch_DisableIntroLogos.asm index dc5800b2..41f559b0 100644 --- a/src/SonicBoomRiseOfLyric/Mods/DisableIntroLogos/patch_DisableIntroLogos.asm +++ b/src/SonicBoomRiseOfLyric/Mods/DisableIntroLogos/patch_DisableIntroLogos.asm @@ -1,4 +1,4 @@ -[WiiULauncher0] +[WiiULauncher0US] moduleMatches = 0x90DAC5CE ; Jump to title from Japanese video @@ -7,6 +7,24 @@ moduleMatches = 0x90DAC5CE ; Jump to title from English video 0x34BA074 = b 0x34BA2C8 +[WiiULauncher0EU] +moduleMatches = 0x8F7D2702 + +; Jump to title from Japanese video +0x34BA0F0 = b 0x34BA350 + +; Jump to title from English video +0x34BA0FC = b 0x34BA350 + +[WiiULauncher0JP] +moduleMatches = 0x0D395735 + +; Jump to title from Japanese video +0x34BA430 = b 0x34BA690 + +; Jump to title from English video +0x34BA43C = b 0x34BA690 + [WiiULauncher16] moduleMatches = 0x113CC316 diff --git a/src/SonicBoomRiseOfLyric/Mods/UncappedFramerate/patch_UnlimitFramerate.asm b/src/SonicBoomRiseOfLyric/Mods/UncappedFramerate/patch_UnlimitFramerate.asm index 96bf5931..04b9b6a2 100644 --- a/src/SonicBoomRiseOfLyric/Mods/UncappedFramerate/patch_UnlimitFramerate.asm +++ b/src/SonicBoomRiseOfLyric/Mods/UncappedFramerate/patch_UnlimitFramerate.asm @@ -1,11 +1,23 @@ -[WiiULauncher0] +[WiiULauncher0US] moduleMatches = 0x90DAC5CE ; Unconditionally branch DriverD3D::LimitFramerate immediately -0x02E47110 = blr +0x2E47110 = blr + +[WiiULauncher0EU] +moduleMatches = 0x8F7D2702 + +; Unconditionally branch DriverD3D::LimitFramerate immediately +0x2E470F0 = blr + +[WiiULauncher0JP] +moduleMatches = 0x0D395735 + +; Unconditionally branch DriverD3D::LimitFramerate immediately +0x2E46EAC = blr [WiiULauncher16] moduleMatches = 0x113CC316 ; Unconditionally branch DriverD3D::LimitFramerate immediately -0x02E47148 = blr +0x2E47148 = blr