Disable storage device option and enable install option on title menu (#12)

This commit is contained in:
DeaTh-G 2024-12-06 20:16:42 +01:00 committed by GitHub
parent 3c7765eb27
commit 9e168ab326
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 0 deletions

View file

@ -36,3 +36,13 @@ PPC_FUNC(sub_825882B8)
}
}
}
void TitleMenuRemoveStorageDeviceOptionMidAsmHook(PPCRegister& r11)
{
r11.u32 = 0;
}
void TitleMenuAddInstallOptionMidAsmHook(PPCRegister& r3)
{
r3.u32 = 1;
}

View file

@ -542,3 +542,15 @@ registers = ["r27"]
name = "AchievementManagerUnlockMidAsmHook"
address = 0x82BCFF28
registers = ["r31"]
[[midasm_hook]]
name = "TitleMenuRemoveStorageDeviceOptionMidAsmHook"
address = 0x825854F8
registers = ["r11"]
jump_address = 0x825854FC
[[midasm_hook]]
name = "TitleMenuAddInstallOptionMidAsmHook"
address = 0x8258547C
registers = ["r3"]
jump_address = 0x82585480