NES PPU - set up to read nes core, close dialog when a nes rom closes, more checks for proper core type
This commit is contained in:
parent
fe51441596
commit
67f6eee6b6
|
@ -252,6 +252,7 @@ namespace BizHawk.MultiClient
|
||||||
Global.Emulator = new NullEmulator();
|
Global.Emulator = new NullEmulator();
|
||||||
RamSearch1.Restart();
|
RamSearch1.Restart();
|
||||||
HexEditor1.Restart();
|
HexEditor1.Restart();
|
||||||
|
NESPPU1.Restart();
|
||||||
Text = "BizHawk";
|
Text = "BizHawk";
|
||||||
HandlePlatformMenus("");
|
HandlePlatformMenus("");
|
||||||
}
|
}
|
||||||
|
|
|
@ -515,6 +515,7 @@ namespace BizHawk.MultiClient
|
||||||
}
|
}
|
||||||
RamSearch1.Restart();
|
RamSearch1.Restart();
|
||||||
HexEditor1.Restart();
|
HexEditor1.Restart();
|
||||||
|
NESPPU1.Restart();
|
||||||
CurrentlyOpenRom = path;
|
CurrentlyOpenRom = path;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@ namespace BizHawk.MultiClient
|
||||||
{
|
{
|
||||||
int defaultWidth; //For saving the default size of the dialog, so the user can restore if desired
|
int defaultWidth; //For saving the default size of the dialog, so the user can restore if desired
|
||||||
int defaultHeight;
|
int defaultHeight;
|
||||||
|
NES Nes;
|
||||||
|
|
||||||
public NESPPU()
|
public NESPPU()
|
||||||
{
|
{
|
||||||
|
@ -27,6 +28,12 @@ namespace BizHawk.MultiClient
|
||||||
Global.Config.NESPPUWndy = this.Location.Y;
|
Global.Config.NESPPUWndy = this.Location.Y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Restart()
|
||||||
|
{
|
||||||
|
if (!(Global.Emulator is NES)) this.Close();
|
||||||
|
Nes = Global.Emulator as NES;
|
||||||
|
}
|
||||||
|
|
||||||
private void LoadConfigSettings()
|
private void LoadConfigSettings()
|
||||||
{
|
{
|
||||||
defaultWidth = Size.Width; //Save these first so that the user can restore to its original size
|
defaultWidth = Size.Width; //Save these first so that the user can restore to its original size
|
||||||
|
@ -34,7 +41,6 @@ namespace BizHawk.MultiClient
|
||||||
|
|
||||||
if (Global.Config.NESPPUWndx >= 0 && Global.Config.NESPPUWndy >= 0)
|
if (Global.Config.NESPPUWndx >= 0 && Global.Config.NESPPUWndy >= 0)
|
||||||
Location = new Point(Global.Config.NESPPUWndx, Global.Config.NESPPUWndy);
|
Location = new Point(Global.Config.NESPPUWndx, Global.Config.NESPPUWndy);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UpdateValues()
|
public void UpdateValues()
|
||||||
|
@ -47,6 +53,7 @@ namespace BizHawk.MultiClient
|
||||||
private void NESPPU_Load(object sender, EventArgs e)
|
private void NESPPU_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
LoadConfigSettings();
|
LoadConfigSettings();
|
||||||
|
Nes = Global.Emulator as NES;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue