diff options
author | twinaphex | 2016-08-06 04:23:08 +0200 |
---|---|---|
committer | twinaphex | 2016-08-06 04:23:08 +0200 |
commit | 89827cd2c8a3f9ca55c4778261e35c218471cbe0 (patch) | |
tree | 973e0f7a77f7d8b53a7b7cc1d6e9813019fdaa33 | |
parent | 71cc74e60a29c27a0b9d5d6c7c7e07115a907cc2 (diff) | |
download | snesemu-89827cd2c8a3f9ca55c4778261e35c218471cbe0.tar.gz snesemu-89827cd2c8a3f9ca55c4778261e35c218471cbe0.tar.bz2 snesemu-89827cd2c8a3f9ca55c4778261e35c218471cbe0.zip |
Cleanup
-rw-r--r-- | source/memmap.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/source/memmap.c b/source/memmap.c index e3e46ba..12a2365 100644 --- a/source/memmap.c +++ b/source/memmap.c @@ -690,16 +690,6 @@ err_eof: if (patch_file) fclose(patch_file); } -#endif - -/**********************************************************************************************/ -/* LoadROM() */ -/* This function loads a Snes-Backup image */ -/**********************************************************************************************/ - -#ifdef LOAD_FROM_MEMORY_TEST -bool LoadROM(const struct retro_game_info* game) -#else static uint32_t FileLoader(uint8_t* buffer, const char* filename, int32_t maxsize) { @@ -817,9 +807,20 @@ static uint32_t FileLoader(uint8_t* buffer, const char* filename, int32_t maxsiz return TotalFileSize; } +#endif + +/**********************************************************************************************/ +/* LoadROM() */ +/* This function loads a Snes-Backup image */ +/**********************************************************************************************/ -bool LoadROM(const char* filename) +bool LoadROM( +#ifdef LOAD_FROM_MEMORY_TEST + const struct retro_game_info* game +#else + const char* filename #endif + ) { int32_t TotalFileSize = 0; bool Interleaved = false; |