From a01efcbd4311133fda6dbe5bfa70d87ffd47a9d1 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 6 Aug 2016 01:10:42 +0200 Subject: Turn CheckForIPSPatch into static function --- source/memmap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/memmap.c') 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) { -- cgit v1.2.3