mirror of
https://github.com/hedge-dev/UnleashedRecomp
synced 2026-06-26 18:42:08 -04:00
Option for PS controller icons. (#21)
* Initial PS button implementation. * Add controller buttons as config option & handle loading screen. * Rename "Controller Buttons" to "Controller Icons".
This commit is contained in:
@@ -101,3 +101,20 @@ PPC_FUNC(sub_82BD06C8)
|
||||
{
|
||||
ctx.r3.u64 = 0;
|
||||
}
|
||||
|
||||
void LoadingScreenControllerMidAsmHook()
|
||||
{
|
||||
static constexpr size_t STR_ADDRESSES[] =
|
||||
{
|
||||
0x820301AC, // 360_sonic1
|
||||
0x820301B8, // 360_sonic2
|
||||
0x820301C4, // 360_sonic3
|
||||
0x820301D0, // 360_evil
|
||||
0x820301DC, // 360_robo
|
||||
0x820301E8, // 360_super
|
||||
};
|
||||
|
||||
const char* prefix = Config::ControllerIcons == EControllerIcons::PlayStation ? "ps3" : "360";
|
||||
for (auto address : STR_ADDRESSES)
|
||||
memcpy(g_memory.Translate(address), prefix, 3);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user