Remove wrong #ifdef decleration

#ifdef __libretro__ is incorrect and function has worked fine without it.
This commit is contained in:
retro-wertz 2018-06-16 00:32:59 +08:00 committed by Rafael Kitover
parent 3791b0a07f
commit 3c0e88bcdf
1 changed files with 2 additions and 11 deletions

View File

@ -131,11 +131,7 @@ static inline uint32_t CPUReadMemory(uint32_t address)
case 14: case 14:
case 15: case 15:
if (cpuFlashEnabled | cpuSramEnabled) { // no need to swap this if (cpuFlashEnabled | cpuSramEnabled) { // no need to swap this
#ifdef __libretro__
return flashRead(address);
#else
value = flashRead(address) * 0x01010101; value = flashRead(address) * 0x01010101;
#endif
} }
break; break;
// default // default
@ -287,14 +283,9 @@ static inline uint32_t CPUReadHalfWord(uint32_t address)
goto unreadable; goto unreadable;
case 14: case 14:
case 15: case 15:
if (cpuFlashEnabled | cpuSramEnabled) if (cpuFlashEnabled | cpuSramEnabled) {
// no need to swap this // no need to swap this
{
#ifdef __libretro__
return flashRead(address);
#else
value = flashRead(address) * 0x0101; value = flashRead(address) * 0x0101;
#endif
} }
// default // default
default: default: