From add395bc9d1953da91730c694b4f4f4600a7b4a4 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Tue, 7 Mar 2023 22:14:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=A8=E6=80=81=E8=AF=BB?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/open_agb_firm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/arm11/open_agb_firm.c b/source/arm11/open_agb_firm.c index 0861e05..a8f238f 100644 --- a/source/arm11/open_agb_firm.c +++ b/source/arm11/open_agb_firm.c @@ -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); }