From 6fb01dd38017e4f4435ef89cef922282478286b9 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 18 Sep 2010 17:57:34 +0000 Subject: [PATCH] fix patch support git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@899 be3aeb3a-fb24-0410-a615-afba39da0efa --- common/emu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/emu.c b/common/emu.c index 822d7aa..1e60925 100644 --- a/common/emu.c +++ b/common/emu.c @@ -497,11 +497,13 @@ int emu_reload_rom(char *rom_fname) get_ext(rom_fname, ext); - // check for movie file + // early cleanup + PicoPatchUnload(); if (movie_data) { free(movie_data); movie_data = 0; } + if (!strcmp(ext, ".gmv")) { // check for both gmv and rom @@ -558,7 +560,6 @@ int emu_reload_rom(char *rom_fname) } shutdown_MCD(); - PicoPatchUnload(); PicoCartUnload(); rom_loaded = 0; -- 2.39.5