diff --git a/src/gba/GBAinline.h b/src/gba/GBAinline.h index f10d460b..90ab21f9 100644 --- a/src/gba/GBAinline.h +++ b/src/gba/GBAinline.h @@ -406,6 +406,9 @@ static inline u8 CPUReadByte(u32 address) goto unreadable; case 14: case 15: + if (cpuSramEnabled | cpuFlashEnabled) + return flashRead(address); + switch(address & 0x00008f00) { case 0x8200: return systemGetSensorX() & 255; @@ -416,8 +419,6 @@ static inline u8 CPUReadByte(u32 address) case 0x8500: return systemGetSensorY() >> 8; } - if (cpuSramEnabled | cpuFlashEnabled) - return flashRead(address); // default default: unreadable: diff --git a/src/wx/panel.cpp b/src/wx/panel.cpp index fa3e84f0..c5d5e17d 100644 --- a/src/wx/panel.cpp +++ b/src/wx/panel.cpp @@ -9,7 +9,7 @@ #include "../gba/agbprint.h" #include "../sdl/text.h" #include "filters.h" -#include "../../svnrev.h" +#include "../../version.h" int emulating;