diff options
author | twinaphex | 2017-08-16 19:23:32 +0200 |
---|---|---|
committer | twinaphex | 2017-08-16 19:23:32 +0200 |
commit | 99aec328bd70fc74aae29d8c6ed29b29e18538a5 (patch) | |
tree | b3c8772c76e6b275e2c1689dc5111eeb9e6098b0 | |
parent | 232f8097145a9e93147893550528374052e5523d (diff) | |
download | snes9x2005-99aec328bd70fc74aae29d8c6ed29b29e18538a5.tar.gz snes9x2005-99aec328bd70fc74aae29d8c6ed29b29e18538a5.tar.bz2 snes9x2005-99aec328bd70fc74aae29d8c6ed29b29e18538a5.zip |
buildfixes
-rw-r--r-- | libretro.c | 2 | ||||
-rw-r--r-- | source/apumem.h | 7 |
2 files changed, 6 insertions, 3 deletions
@@ -300,6 +300,7 @@ void retro_init(void) { struct retro_log_callback log; enum retro_pixel_format rgb565; + bool achievements = true; static const struct retro_variable vars[] = { @@ -313,7 +314,6 @@ void retro_init(void) log_cb = NULL; /* State that the core supports achievements. */ - bool achievements = true; environ_cb(RETRO_ENVIRONMENT_SET_SUPPORT_ACHIEVEMENTS, &achievements); rgb565 = RETRO_PIXEL_FORMAT_RGB565; diff --git a/source/apumem.h b/source/apumem.h index c021e41..f39ff92 100644 --- a/source/apumem.h +++ b/source/apumem.h @@ -62,13 +62,16 @@ static INLINE void S9xAPUSetByteZ(uint8_t byte, uint8_t Address) static INLINE uint8_t S9xAPUGetByte(uint32_t Address) { + bool zero; + uint8_t t; + Address &= 0xffff; if (Address == 0xf3) return S9xGetAPUDSP(); - bool zero = (Address >= 0xfd && Address <= 0xff); - uint8_t t = IAPU.RAM [Address]; + zero = (Address >= 0xfd && Address <= 0xff); + t = IAPU.RAM [Address]; if (zero || (Address >= 0xf4 && Address <= 0xf7)) { |