Toolbox - reload icons on rom open/close so that core dependent tools update.

This commit is contained in:
andres.delikat 2012-01-10 02:11:17 +00:00
parent c871eedbbc
commit d6a57e08c1
2 changed files with 15 additions and 4 deletions

View File

@ -1117,8 +1117,8 @@ namespace BizHawk.MultiClient
Global.Config.RecentRoms.Add(file.CanonicalFullPath);
if (File.Exists(PathManager.SaveRamPath(game)))
LoadSaveRam();
if (Global.Config.AutoSavestates)
LoadState("Auto");
if (Global.Config.AutoSavestates)
LoadState("Auto");
////setup the throttle based on platform's specifications
////(one day later for some systems we will need to modify it at runtime as the display mode changes)
@ -1134,8 +1134,9 @@ namespace BizHawk.MultiClient
NESDebug1.Restart();
TI83KeyPad1.Restart();
TAStudio1.Restart();
Cheats1.Restart();
ToolBox1.Restart();
if (Global.Config.LoadCheatFileByGame)
{
if (Global.CheatList.AttemptLoadCheatFile())
@ -2188,6 +2189,7 @@ namespace BizHawk.MultiClient
NESDebug1.Restart();
TI83KeyPad1.Restart();
Cheats1.Restart();
ToolBox1.Restart();
Text = "BizHawk" + (INTERIM ? " (interim) " : "");
HandlePlatformMenus();
StateSlots.Clear();

View File

@ -24,7 +24,16 @@ namespace BizHawk.MultiClient
int x = Global.MainForm.Location.X + Global.MainForm.Size.Width;
int y = Global.MainForm.Location.Y;
Location = new Point(x, y);
HideShowIcons();
}
public void Restart()
{
HideShowIcons();
}
private void HideShowIcons()
{
if (Global.Emulator is NES)
{
NESPPU.Visible = true;
@ -39,7 +48,7 @@ namespace BizHawk.MultiClient
NESGameGenie.Visible = false;
NESNameTable.Visible = false;
}
if (Global.Emulator is TI83)
{
KeypadTool.Visible = true;