change order of shutting down core vs tools so tools have a chance to unhook from the core before the core is disposed

This commit is contained in:
zeromus 2015-11-03 21:50:32 -06:00
parent f3626b9605
commit fb7ed39944
1 changed files with 3 additions and 1 deletions

View File

@ -234,9 +234,11 @@ namespace BizHawk.Client.EmuHawk
{
if (GlobalWin.Tools.AskSave())
{
CloseGame();
//zero 03-nov-2015 - close game after other steps. tools might need to unhook themselves from a core.
Global.MovieSession.Movie.Stop();
GlobalWin.Tools.Close();
CloseGame();
//does this need to be last for any particular reason? do tool dialogs persist settings when closing?
SaveConfig();
}
else