From 4c51d82707c540a5d86aa002cf1d2ac3a88614d5 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 6 Oct 2020 14:21:56 +0200 Subject: [PATCH] Cleanup --- mednafen/hw_misc/arcade_card/arcade_card.h | 2 +- mednafen/pce_fast/ioread.inc | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/mednafen/hw_misc/arcade_card/arcade_card.h b/mednafen/hw_misc/arcade_card/arcade_card.h index 2f2aca9..509a504 100644 --- a/mednafen/hw_misc/arcade_card/arcade_card.h +++ b/mednafen/hw_misc/arcade_card/arcade_card.h @@ -27,7 +27,7 @@ class ArcadeCard void Power(void); int StateAction(StateMem *sm, int load, int data_only); - uint8 Read(uint32 A, bool peek = false); // Pass peek as true if you don't want side-effects from this read(IE in a debugger). + uint8 Read(uint32 A, bool peek); // Pass peek as true if you don't want side-effects from this read(IE in a debugger). void Write(uint32 A, uint8 V); INLINE void PhysWrite(uint32 A, uint8 V) diff --git a/mednafen/pce_fast/ioread.inc b/mednafen/pce_fast/ioread.inc index 909ebf1..0dbfdaa 100644 --- a/mednafen/pce_fast/ioread.inc +++ b/mednafen/pce_fast/ioread.inc @@ -104,10 +104,9 @@ if((A & 0x1E00) == 0x1A00) { - if(arcade_card) - return(arcade_card->Read(A & 0x1FFF)); - else - return(0); + if(arcade_card) + return(arcade_card->Read(A & 0x1FFF, false)); + return(0); } else {