From 20c8b89bb755bdce838b222044fac48ca22bef7e Mon Sep 17 00:00:00 2001 From: ramapcsx2 Date: Sat, 16 Jan 2016 14:36:09 +0100 Subject: [PATCH] cdvd: return 0xff instead of 0 on unknown 8 bit reads. improves compatibility with popstarter a bit. Unfortunately, it then fails to load pops with "loadmodule: fname rom0:UDNL args 5 arg crap:" --- pcsx2/CDVD/CDVD.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcsx2/CDVD/CDVD.cpp b/pcsx2/CDVD/CDVD.cpp index cb2d40ef82..3daa786f01 100644 --- a/pcsx2/CDVD/CDVD.cpp +++ b/pcsx2/CDVD/CDVD.cpp @@ -1143,9 +1143,10 @@ u8 cdvdRead(u8 key) default: // note: notify the console since this is a potentially serious emulation problem: + // return -1 (all bits set) instead of 0, improves chances of the software being happy PSXHW_LOG("*Unknown 8bit read at address 0x1f4020%x", key); Console.Error( "IOP Unknown 8bit read from addr 0x1f4020%x", key ); - return 0; + return -1; } }