Fix Input handling and message boxes (Fixes #3)
This commit is contained in:
@@ -344,7 +344,7 @@ CoroutineRet HandleMessageBoxInteraction_Async(void) { // 0x85846D
|
||||
do {
|
||||
COROUTINE_AWAIT(3, WaitForNMI_NoUpdate_Async());
|
||||
ReadJoypadInputs();
|
||||
} while (!joypad1_newkeys);
|
||||
} while (!joypad1_lastkeys);
|
||||
}
|
||||
GETOUT:;
|
||||
COROUTINE_END(0);
|
||||
|
||||
@@ -664,7 +664,7 @@ Snes *SnesInit(const char *filename) {
|
||||
|
||||
// Patch HandleMessageBoxInteraction logic
|
||||
{ uint8 t[] = { 0x20, 0x50, 0x96, 0x60 }; PatchBytes(0x8584A3, t, sizeof(t)); }
|
||||
{ uint8 t[] = { 0x20, 0x36, 0x81, 0x22, 0x59, 0x94, 0x80, 0xc2, 0x30, 0xa5, 0x8f, 0xf0, 0xf3, 0x60 }; PatchBytes(0x859650, t, sizeof(t)); }
|
||||
{ uint8 t[] = { 0x20, 0x36, 0x81, 0x22, 0x59, 0x94, 0x80, 0xc2, 0x30, 0xa5, 0x8b, 0xf0, 0xf3, 0x60 }; PatchBytes(0x859650, t, sizeof(t)); }
|
||||
{ uint8 t[] = { 0x18, 0x18 }; PatchBytes(0x8584CC, t, sizeof(t)); } // Don't wait 2 loops
|
||||
|
||||
// Patch RestorePpuForMessageBox
|
||||
|
||||
Reference in New Issue
Block a user