mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-06 13:54:09 +08:00
添加动态读取
This commit is contained in:
parent
1a0a8b3c03
commit
add395bc9d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user