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:
Skyth (Asilkan)
2024-12-07 16:50:07 +03:00
committed by GitHub
parent 72f6713151
commit 31b100894f
14 changed files with 277 additions and 4 deletions
@@ -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);
}