save nvmem/flash files when stopping emu

This commit is contained in:
Flyinghead 2021-07-19 18:20:58 +02:00
parent 117f47e3a2
commit edc6474f27
1 changed files with 1 additions and 0 deletions

View File

@ -598,6 +598,7 @@ void dc_stop()
sh4_cpu.Stop();
rend_cancel_emu_wait();
emuThread.WaitToEnd();
SaveRomFiles();
if (running)
EventManager::event(Event::Pause);
}