mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
fix patch support
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@899 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
a4edca53b4
commit
77189b7d9c
1 changed files with 3 additions and 2 deletions
|
@ -497,11 +497,13 @@ int emu_reload_rom(char *rom_fname)
|
||||||
|
|
||||||
get_ext(rom_fname, ext);
|
get_ext(rom_fname, ext);
|
||||||
|
|
||||||
// check for movie file
|
// early cleanup
|
||||||
|
PicoPatchUnload();
|
||||||
if (movie_data) {
|
if (movie_data) {
|
||||||
free(movie_data);
|
free(movie_data);
|
||||||
movie_data = 0;
|
movie_data = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strcmp(ext, ".gmv"))
|
if (!strcmp(ext, ".gmv"))
|
||||||
{
|
{
|
||||||
// check for both gmv and rom
|
// check for both gmv and rom
|
||||||
|
@ -558,7 +560,6 @@ int emu_reload_rom(char *rom_fname)
|
||||||
}
|
}
|
||||||
|
|
||||||
shutdown_MCD();
|
shutdown_MCD();
|
||||||
PicoPatchUnload();
|
|
||||||
PicoCartUnload();
|
PicoCartUnload();
|
||||||
rom_loaded = 0;
|
rom_loaded = 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue