replace some references to GlobalWin.MainForm in MainForm itself, because that makes no sense.

This commit is contained in:
adelikat 2015-02-22 03:26:00 +00:00
parent 7a7dec0ca9
commit f3c29e5bc2
3 changed files with 3 additions and 3 deletions

View File

@ -1846,7 +1846,7 @@ namespace BizHawk.Client.EmuHawk
{
if (new N64ControllersSetup().ShowDialog() == DialogResult.OK)
{
GlobalWin.MainForm.FlagNeedsReboot();
FlagNeedsReboot();
GlobalWin.OSD.AddMessage("Controller settings saved but a core reboot is required");
}
else

View File

@ -31,7 +31,7 @@ namespace BizHawk.Client.EmuHawk
return false;
}
LoadRom(GlobalWin.MainForm.CurrentlyOpenRom);
LoadRom(CurrentlyOpenRom);
if (Global.MovieSession.PreviousNES_InQuickNES.HasValue)
{

View File

@ -2976,7 +2976,7 @@ namespace BizHawk.Client.EmuHawk
}
else
{
var token = aw.AcquireVideoCodecToken(GlobalWin.MainForm);
var token = aw.AcquireVideoCodecToken(this);
if (token == null)
{
GlobalWin.OSD.AddMessage("A/V capture canceled.");