From fb7ed39944b6f35ef75d1db015160891ccae4ea8 Mon Sep 17 00:00:00 2001 From: zeromus Date: Tue, 3 Nov 2015 21:50:32 -0600 Subject: [PATCH] change order of shutting down core vs tools so tools have a chance to unhook from the core before the core is disposed --- BizHawk.Client.EmuHawk/MainForm.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/MainForm.cs b/BizHawk.Client.EmuHawk/MainForm.cs index c44de242b5..ce72caba0a 100644 --- a/BizHawk.Client.EmuHawk/MainForm.cs +++ b/BizHawk.Client.EmuHawk/MainForm.cs @@ -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