Clean up GlobalWin.Tools assignment and usage in MainForm
This commit is contained in:
parent
8aab0d00cd
commit
2e428ccc2e
|
@ -101,7 +101,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GlobalWin.Tools.IsLoaded<TAStudio>())
|
if (Tools.IsLoaded<TAStudio>())
|
||||||
{
|
{
|
||||||
Tools.TAStudio.LoadMovieFile(filename);
|
Tools.TAStudio.LoadMovieFile(filename);
|
||||||
}
|
}
|
||||||
|
|
|
@ -311,7 +311,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
GlobalWin.Game = GameInfo.NullInstance;
|
GlobalWin.Game = GameInfo.NullInstance;
|
||||||
_throttle = new Throttle();
|
_throttle = new Throttle();
|
||||||
Emulator = new NullEmulator();
|
Emulator = new NullEmulator();
|
||||||
GlobalWin.Tools = new ToolManager(this, Config, InputManager, Emulator, MovieSession, Game);
|
GlobalWin.Tools = Tools = new ToolManager(this, Config, InputManager, Emulator, MovieSession, Game);
|
||||||
|
|
||||||
UpdateStatusSlots();
|
UpdateStatusSlots();
|
||||||
UpdateKeyPriorityIcon();
|
UpdateKeyPriorityIcon();
|
||||||
|
@ -847,7 +847,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
set => GlobalWin.Config = base.Config = value;
|
set => GlobalWin.Config = base.Config = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
private ToolManager Tools => GlobalWin.Tools;
|
private readonly ToolManager Tools;
|
||||||
|
|
||||||
private DisplayManager DisplayManager => GlobalWin.DisplayManager;
|
private DisplayManager DisplayManager => GlobalWin.DisplayManager;
|
||||||
|
|
||||||
public IMovieSession MovieSession
|
public IMovieSession MovieSession
|
||||||
|
|
Loading…
Reference in New Issue