From b0562b43609ae0325b99ed4ba29d363c0cddf40d Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Fri, 6 Dec 2024 13:45:17 +0000 Subject: [PATCH] Remove storage device prompt on new game MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A.K.A. The Fucking Thing™️ --- UnleashedRecomp/patches/misc_patches.cpp | 2 ++ UnleashedRecompLib/config/SWA.toml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/UnleashedRecomp/patches/misc_patches.cpp b/UnleashedRecomp/patches/misc_patches.cpp index 3a523ef..1caac4b 100644 --- a/UnleashedRecomp/patches/misc_patches.cpp +++ b/UnleashedRecomp/patches/misc_patches.cpp @@ -32,6 +32,8 @@ void WerehogBattleMusicMidAsmHook(PPCRegister& r11) r11.u8 = 3; } +void StorageDevicePromptMidAsmHook() {} + /* Hook function that gets the game region and force result to zero for Japanese to display the correct logos. */ diff --git a/UnleashedRecompLib/config/SWA.toml b/UnleashedRecompLib/config/SWA.toml index 0e2e975..a3c6774 100644 --- a/UnleashedRecompLib/config/SWA.toml +++ b/UnleashedRecompLib/config/SWA.toml @@ -447,3 +447,9 @@ registers = ["r1", "r29"] name = "GetDatabaseDataMidAsmHook" address = 0x827D6018 # Particle Material XML registers = ["r1", "r30"] + +# Removes the storage device prompt on new game +[[midasm_hook]] +name = "StorageDevicePromptMidAsmHook" +address = 0x822C53CC +jump_address = 0x822C53F8