tracer: reboot on game close

more ^final^ tweaks
This commit is contained in:
feos 2016-08-22 21:57:18 +03:00
parent 215f9b9959
commit ef47d9fbca
2 changed files with 12 additions and 2 deletions

View File

@ -3583,6 +3583,9 @@ namespace BizHawk.Client.EmuHawk
StopMovie(true);
}
if (GlobalWin.Tools.IsLoaded<TraceLogger>())
GlobalWin.Tools.Get<TraceLogger>().Restart();
Global.CheatList.SaveOnClose();
Global.Emulator.Dispose();
var coreComm = CreateCoreComm();

View File

@ -105,7 +105,8 @@ namespace BizHawk.Client.EmuHawk
{
ClearList();
OpenLogFile.Enabled = false;
//Tracer.Enabled = LoggingEnabled.Checked = false;
LoggingEnabled.Checked = false;
Tracer.Sink = null;
SetTracerBoxTitle();
}
@ -187,8 +188,13 @@ namespace BizHawk.Client.EmuHawk
public void Restart()
{
CloseFile();
ClearList();
//Tracer.Enabled = LoggingEnabled.Checked = false;
LoggingEnabled.Checked = false;
ToFileRadio.Checked = false;
ToWindowRadio.Checked = true;
OpenLogFile.Enabled = false;
Tracer.Sink = null;
SetTracerBoxTitle();
}
@ -466,6 +472,7 @@ namespace BizHawk.Client.EmuHawk
CloseFile();
FileBox.Visible = false;
BrowseBox.Visible = false;
OpenLogFile.Enabled = false;
}
SetTracerBoxTitle();