添加动态读取

This commit is contained in:
anod 2023-03-07 22:14:30 +08:00
parent 1a0a8b3c03
commit add395bc9d

View File

@ -1064,18 +1064,18 @@ Result oafInitAndRun(void)
void oafUpdate(void)
{
LGY_handleOverrides();
if( detect_cheatKey && (hidGetExtraKeys(0) & KEY_HOME) ) // press home as cheat keys
{
u16 *hid_set = (u16*)0x10141112;
u16 *hid_mode = (u16*)0x10141110;
debug_printf("home press: %04x", *hid_mode);
vu16 *hid_set = (vu16*)0x10141112;
vu16 *hid_mode = (vu16*)0x10141110;
debug_printf("home press: %04x\n", *hid_mode);
if( *hid_mode == 0 )
{
*hid_mode = detect_cheatKey;
*hid_set = detect_cheatKey;
}
}
else LGY_handleOverrides();
waitForEvent(g_frameReadyEvent);
}