Don't try to uninstall handlers for active core
Should stop the Gambatte/Bsnes SGB core from crashing on exit.
This commit is contained in:
parent
05ad5b9da1
commit
62ee8b0039
1 changed files with 2 additions and 1 deletions
|
@ -944,7 +944,6 @@ void main_loop(struct loaded_rom& rom, struct moviefile& initial, bool load_has_
|
|||
out:
|
||||
core.jukebox->unset_update();
|
||||
core.mdumper->end_dumps();
|
||||
core_core::uninstall_all_handlers();
|
||||
core.commentary->kill();
|
||||
core.iqueue->system_thread_available = false;
|
||||
//Kill some things to avoid crashes.
|
||||
|
@ -954,6 +953,8 @@ out:
|
|||
//Close the ROM.
|
||||
load_null_rom();
|
||||
do_load_rom();
|
||||
//Uninstall the handlers. Don't do this with ROM loaded.
|
||||
core_core::uninstall_all_handlers();
|
||||
}
|
||||
|
||||
void set_stop_at_frame(uint64_t frame)
|
||||
|
|
Loading…
Add table
Reference in a new issue