refix CDL autosave

This commit is contained in:
zeromus 2018-11-13 03:21:19 -05:00
parent 026bd3e1e5
commit 5a38882f9e
1 changed files with 6 additions and 3 deletions

View File

@ -185,11 +185,14 @@ namespace BizHawk.Client.EmuHawk
//try auto-saving if appropriate
if (Global.Config.CDLAutoSave)
{
if (_currentFilename != null)
{
RunSave();
ShutdownCDL();
return true;
}
}
//TODO - I dont like this system. It's hard to figure out how to use it. It should be done in multiple passes.
var result = MessageBox.Show("Save changes to CDL session?", "CDL Auto Save", MessageBoxButtons.YesNo, MessageBoxIcon.Question);