Now NESNameTableViewer, NESPPU, NESDebugger, Cheats, TI83KeyPad, TAStudio should save the settings correctly.

This commit is contained in:
taotao54321 2012-03-09 20:10:01 +00:00
parent 3a6ac596bf
commit ecf9e6efc0
1 changed files with 14 additions and 6 deletions

View File

@ -2243,15 +2243,23 @@ namespace BizHawk.MultiClient
Global.Config.MainWndx = -1;
Global.Config.MainWndy = -1;
}
if (RamWatch1.IsHandleCreated)
RamWatch1.SaveConfigSettings();
if (RamSearch1.IsHandleCreated)
RamSearch1.SaveConfigSettings();
if (!HexEditor1.IsDisposed)
HexEditor1.SaveConfigSettings();
CloseForm(RamWatch1);
CloseForm(RamSearch1);
CloseForm(HexEditor1);
CloseForm(NESNameTableViewer1);
CloseForm(NESPPU1);
CloseForm(NESDebug1);
CloseForm(Cheats1);
CloseForm(TI83KeyPad1);
CloseForm(TAStudio1);
ConfigService.Save(PathManager.DefaultIniPath, Global.Config);
}
private void CloseForm(Form form)
{
if (form.IsHandleCreated) form.Close();
}
private void PreviousSlot()
{
if (Global.Config.SaveSlot == 0)