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

@ -186,9 +186,12 @@ namespace BizHawk.Client.EmuHawk
//try auto-saving if appropriate
if (Global.Config.CDLAutoSave)
{
RunSave();
ShutdownCDL();
return true;
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.