OpenBus changes from PCSX-Redux
authorgameblabla <gameblabla@protonmail.com>
Sat, 2 Oct 2021 16:11:29 +0000 (18:11 +0200)
committergameblabla <gameblabla@protonmail.com>
Sat, 2 Oct 2021 16:11:29 +0000 (18:11 +0200)
Co-authored-by: Nicolas Noble <nicolasnoble@users.noreply.github.com>
libpcsxcore/psxmem.c

index db3a2db..c2bed4c 100644 (file)
@@ -276,7 +276,7 @@ u8 psxMemRead8(u32 mem) {
 #ifdef PSXMEM_LOG
                        PSXMEM_LOG("err lb %8.8lx\n", mem);
 #endif
-                       return 0;
+                       return 0xFF;
                }
        }
 }
@@ -301,7 +301,7 @@ u16 psxMemRead16(u32 mem) {
 #ifdef PSXMEM_LOG
                        PSXMEM_LOG("err lh %8.8lx\n", mem);
 #endif
-                       return 0;
+                       return 0xFFFF;
                }
        }
 }
@@ -326,7 +326,7 @@ u32 psxMemRead32(u32 mem) {
 #ifdef PSXMEM_LOG
                        if (writeok) { PSXMEM_LOG("err lw %8.8lx\n", mem); }
 #endif
-                       return 0;
+                       return 0xFFFFFFFF;
                }
        }
 }