Fix loading of cheats window, do not load most recent file on autoload in this dialog's case, also fix bug in the function

This commit is contained in:
andres.delikat 2011-03-20 21:03:33 +00:00
parent 05ee956c92
commit f6eaeda6c9
1 changed files with 1 additions and 3 deletions

View File

@ -1041,12 +1041,10 @@ namespace BizHawk.MultiClient
if (!Cheats1.IsHandleCreated || Cheats1.IsDisposed) if (!Cheats1.IsHandleCreated || Cheats1.IsDisposed)
{ {
Cheats1 = new Cheats(); Cheats1 = new Cheats();
if (Global.Config.AutoLoadCheats && Global.Config.RecentCheats.Length() > 0)
Cheats1.LoadCheatFromRecent(Global.Config.RecentCheats.GetRecentFileByPosition(0));
Cheats1.Show(); Cheats1.Show();
} }
else else
NESPPU1.Focus(); Cheats1.Focus();
} }
private int lastWidth = -1; private int lastWidth = -1;