If project switch loads savestate, mark position at point of save

This commit is contained in:
Ilari Liusvaara 2014-12-04 22:21:41 +02:00
parent b6349a0980
commit 4b44f8ee10

View file

@ -714,6 +714,9 @@ jumpback:
delete old;
core.slotcache->flush(); //Wrong movie may be stale.
core.runmode->end_load(); //Restore previous mode.
if(core.mlogic->get_mfile().is_savestate)
core.runmode->set_point(emulator_runmode::P_SAVE);
core.supdater->update();
return 1;
} catch(std::exception& e) {
platform::error_message(std::string("Can't switch projects: ") + e.what());