notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
in_evdev: do all events in update_keycode
[libpicofe.git]
/
common
/
emu.c
diff --git
a/common/emu.c
b/common/emu.c
index
822d7aa
..
1e60925
100644
(file)
--- a/
common/emu.c
+++ b/
common/emu.c
@@
-497,11
+497,13
@@
int emu_reload_rom(char *rom_fname)
\r
get_ext(rom_fname, ext);
\r
\r
\r
get_ext(rom_fname, ext);
\r
\r
- // check for movie file
\r
+ // early cleanup
\r
+ PicoPatchUnload();
\r
if (movie_data) {
\r
free(movie_data);
\r
movie_data = 0;
\r
}
\r
if (movie_data) {
\r
free(movie_data);
\r
movie_data = 0;
\r
}
\r
+
\r
if (!strcmp(ext, ".gmv"))
\r
{
\r
// check for both gmv and rom
\r
if (!strcmp(ext, ".gmv"))
\r
{
\r
// check for both gmv and rom
\r
@@
-558,7
+560,6
@@
int emu_reload_rom(char *rom_fname)
}
\r
\r
shutdown_MCD();
\r
}
\r
\r
shutdown_MCD();
\r
- PicoPatchUnload();
\r
PicoCartUnload();
\r
rom_loaded = 0;
\r
\r
PicoCartUnload();
\r
rom_loaded = 0;
\r
\r