diff options
author | twinaphex | 2016-08-06 01:10:42 +0200 |
---|---|---|
committer | twinaphex | 2016-08-06 01:10:42 +0200 |
commit | a01efcbd4311133fda6dbe5bfa70d87ffd47a9d1 (patch) | |
tree | 504e33b30c9b229dc97053fa4bce353d9e39fdcc /source | |
parent | 2c326220170c58bd533d018e39d2b482566d7208 (diff) | |
download | snesemu-a01efcbd4311133fda6dbe5bfa70d87ffd47a9d1.tar.gz snesemu-a01efcbd4311133fda6dbe5bfa70d87ffd47a9d1.tar.bz2 snesemu-a01efcbd4311133fda6dbe5bfa70d87ffd47a9d1.zip |
Turn CheckForIPSPatch into static function
Diffstat (limited to 'source')
-rw-r--r-- | source/memmap.c | 4 | ||||
-rw-r--r-- | source/memmap.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/memmap.c b/source/memmap.c index a8ba4e2..767501e 100644 --- a/source/memmap.c +++ b/source/memmap.c @@ -4037,9 +4037,10 @@ static long ReadInt(FILE* f, unsigned nbytes) return (v); } +#ifdef LOAD_FROM_MEMORY_TEST #define IPS_EOF 0x00454F46l -void CheckForIPSPatch(const char* rom_filename, bool header, +static void CheckForIPSPatch(const char* rom_filename, bool header, int32_t* rom_size) { char dir [_MAX_DIR + 1]; @@ -4138,6 +4139,7 @@ err_eof: if (patch_file) fclose(patch_file); } +#endif int is_bsx(unsigned char* p) { diff --git a/source/memmap.h b/source/memmap.h index f94fde3..30e3f8d 100644 --- a/source/memmap.h +++ b/source/memmap.h @@ -177,8 +177,6 @@ int ScoreLoROM(bool skip_header, int32_t offset); void SufamiTurboAltROMMap(); #endif void ApplyROMFixes(); -void CheckForIPSPatch(const char* rom_filename, bool header, - int32_t* rom_size); const char* TVStandard(); const char* Speed(); |