aboutsummaryrefslogtreecommitdiff
path: root/source/memmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/memmap.c')
-rw-r--r--source/memmap.c23
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;