Toolbox - reload icons on rom open/close so that core dependent tools update.
This commit is contained in:
parent
c871eedbbc
commit
d6a57e08c1
|
@ -1117,8 +1117,8 @@ namespace BizHawk.MultiClient
|
||||||
Global.Config.RecentRoms.Add(file.CanonicalFullPath);
|
Global.Config.RecentRoms.Add(file.CanonicalFullPath);
|
||||||
if (File.Exists(PathManager.SaveRamPath(game)))
|
if (File.Exists(PathManager.SaveRamPath(game)))
|
||||||
LoadSaveRam();
|
LoadSaveRam();
|
||||||
if (Global.Config.AutoSavestates)
|
if (Global.Config.AutoSavestates)
|
||||||
LoadState("Auto");
|
LoadState("Auto");
|
||||||
|
|
||||||
////setup the throttle based on platform's specifications
|
////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)
|
////(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();
|
NESDebug1.Restart();
|
||||||
TI83KeyPad1.Restart();
|
TI83KeyPad1.Restart();
|
||||||
TAStudio1.Restart();
|
TAStudio1.Restart();
|
||||||
|
|
||||||
Cheats1.Restart();
|
Cheats1.Restart();
|
||||||
|
ToolBox1.Restart();
|
||||||
|
|
||||||
if (Global.Config.LoadCheatFileByGame)
|
if (Global.Config.LoadCheatFileByGame)
|
||||||
{
|
{
|
||||||
if (Global.CheatList.AttemptLoadCheatFile())
|
if (Global.CheatList.AttemptLoadCheatFile())
|
||||||
|
@ -2188,6 +2189,7 @@ namespace BizHawk.MultiClient
|
||||||
NESDebug1.Restart();
|
NESDebug1.Restart();
|
||||||
TI83KeyPad1.Restart();
|
TI83KeyPad1.Restart();
|
||||||
Cheats1.Restart();
|
Cheats1.Restart();
|
||||||
|
ToolBox1.Restart();
|
||||||
Text = "BizHawk" + (INTERIM ? " (interim) " : "");
|
Text = "BizHawk" + (INTERIM ? " (interim) " : "");
|
||||||
HandlePlatformMenus();
|
HandlePlatformMenus();
|
||||||
StateSlots.Clear();
|
StateSlots.Clear();
|
||||||
|
|
|
@ -24,7 +24,16 @@ namespace BizHawk.MultiClient
|
||||||
int x = Global.MainForm.Location.X + Global.MainForm.Size.Width;
|
int x = Global.MainForm.Location.X + Global.MainForm.Size.Width;
|
||||||
int y = Global.MainForm.Location.Y;
|
int y = Global.MainForm.Location.Y;
|
||||||
Location = new Point(x, y);
|
Location = new Point(x, y);
|
||||||
|
HideShowIcons();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Restart()
|
||||||
|
{
|
||||||
|
HideShowIcons();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void HideShowIcons()
|
||||||
|
{
|
||||||
if (Global.Emulator is NES)
|
if (Global.Emulator is NES)
|
||||||
{
|
{
|
||||||
NESPPU.Visible = true;
|
NESPPU.Visible = true;
|
||||||
|
@ -39,7 +48,7 @@ namespace BizHawk.MultiClient
|
||||||
NESGameGenie.Visible = false;
|
NESGameGenie.Visible = false;
|
||||||
NESNameTable.Visible = false;
|
NESNameTable.Visible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Global.Emulator is TI83)
|
if (Global.Emulator is TI83)
|
||||||
{
|
{
|
||||||
KeypadTool.Visible = true;
|
KeypadTool.Visible = true;
|
||||||
|
|
Loading…
Reference in New Issue