Commit 3c0e88bc authored by retro-wertz's avatar retro-wertz Committed by Rafael Kitover
Browse files

Remove wrong #ifdef decleration

#ifdef __libretro__ is incorrect and function has worked fine without it.
parent 3791b0a0
......@@ -131,11 +131,7 @@ static inline uint32_t CPUReadMemory(uint32_t address)
case 14:
case 15:
if (cpuFlashEnabled | cpuSramEnabled) { // no need to swap this
#ifdef __libretro__
return flashRead(address);
#else
value = flashRead(address) * 0x01010101;
#endif
}
break;
// default
......@@ -287,14 +283,9 @@ static inline uint32_t CPUReadHalfWord(uint32_t address)
goto unreadable;
case 14:
case 15:
if (cpuFlashEnabled | cpuSramEnabled)
// no need to swap this
{
#ifdef __libretro__
return flashRead(address);
#else
if (cpuFlashEnabled | cpuSramEnabled) {
// no need to swap this
value = flashRead(address) * 0x0101;
#endif
}
// default
default:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment