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.MainWndx = -1;
Global.Config.MainWndy = -1; Global.Config.MainWndy = -1;
} }
if (RamWatch1.IsHandleCreated) CloseForm(RamWatch1);
RamWatch1.SaveConfigSettings(); CloseForm(RamSearch1);
if (RamSearch1.IsHandleCreated) CloseForm(HexEditor1);
RamSearch1.SaveConfigSettings(); CloseForm(NESNameTableViewer1);
if (!HexEditor1.IsDisposed) CloseForm(NESPPU1);
HexEditor1.SaveConfigSettings(); CloseForm(NESDebug1);
CloseForm(Cheats1);
CloseForm(TI83KeyPad1);
CloseForm(TAStudio1);
ConfigService.Save(PathManager.DefaultIniPath, Global.Config); ConfigService.Save(PathManager.DefaultIniPath, Global.Config);
} }
private void CloseForm(Form form)
{
if (form.IsHandleCreated) form.Close();
}
private void PreviousSlot() private void PreviousSlot()
{ {
if (Global.Config.SaveSlot == 0) if (Global.Config.SaveSlot == 0)