diff --git a/BizHawk.MultiClient/BizHawk.MultiClient.csproj b/BizHawk.MultiClient/BizHawk.MultiClient.csproj index 95886f58a6..c6f799cecf 100644 --- a/BizHawk.MultiClient/BizHawk.MultiClient.csproj +++ b/BizHawk.MultiClient/BizHawk.MultiClient.csproj @@ -3,7 +3,7 @@ Debug AnyCPU - 9.0.30729 + 9.0.21022 2.0 {DD448B37-BA3F-4544-9754-5406E8094723} Exe @@ -122,6 +122,12 @@ NameStateForm.cs + + Form + + + NESPPU.cs + Form @@ -256,6 +262,10 @@ + + NESPPU.cs + Designer + PlayMovie.cs Designer diff --git a/BizHawk.MultiClient/MainForm.Designer.cs b/BizHawk.MultiClient/MainForm.Designer.cs index ccab41f659..d5a4301e46 100644 --- a/BizHawk.MultiClient/MainForm.Designer.cs +++ b/BizHawk.MultiClient/MainForm.Designer.cs @@ -88,6 +88,7 @@ this.playMovieToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.stopMovieToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.playFromBeginningToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.replayInputLogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.screenshotF12ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -157,7 +158,10 @@ this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.helpToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.replayInputLogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.nESToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.pPUViewerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.nameTableViewerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.gameGenieCodesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.menuStrip1.SuspendLayout(); this.SuspendLayout(); // @@ -169,6 +173,7 @@ this.viewToolStripMenuItem, this.configToolStripMenuItem, this.toolsToolStripMenuItem, + this.nESToolStripMenuItem, this.helpToolStripMenuItem}); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; @@ -654,6 +659,13 @@ this.playFromBeginningToolStripMenuItem.Text = "Play from Beginning"; this.playFromBeginningToolStripMenuItem.Click += new System.EventHandler(this.playFromBeginningToolStripMenuItem_Click); // + // replayInputLogToolStripMenuItem + // + this.replayInputLogToolStripMenuItem.Name = "replayInputLogToolStripMenuItem"; + this.replayInputLogToolStripMenuItem.Size = new System.Drawing.Size(179, 22); + this.replayInputLogToolStripMenuItem.Text = "Replay Input Log"; + this.replayInputLogToolStripMenuItem.Click += new System.EventHandler(this.replayInputLogToolStripMenuItem_Click); + // // screenshotF12ToolStripMenuItem // this.screenshotF12ToolStripMenuItem.Name = "screenshotF12ToolStripMenuItem"; @@ -1177,23 +1189,47 @@ // this.helpToolStripMenuItem1.Enabled = false; this.helpToolStripMenuItem1.Name = "helpToolStripMenuItem1"; - this.helpToolStripMenuItem1.Size = new System.Drawing.Size(114, 22); + this.helpToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); this.helpToolStripMenuItem1.Text = "&Help"; this.helpToolStripMenuItem1.Click += new System.EventHandler(this.helpToolStripMenuItem1_Click); // // aboutToolStripMenuItem // this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; - this.aboutToolStripMenuItem.Size = new System.Drawing.Size(114, 22); + this.aboutToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.aboutToolStripMenuItem.Text = "&About"; this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click); // - // replayInputLogToolStripMenuItem + // nESToolStripMenuItem // - this.replayInputLogToolStripMenuItem.Name = "replayInputLogToolStripMenuItem"; - this.replayInputLogToolStripMenuItem.Size = new System.Drawing.Size(179, 22); - this.replayInputLogToolStripMenuItem.Text = "Replay Input Log"; - this.replayInputLogToolStripMenuItem.Click += new System.EventHandler(this.replayInputLogToolStripMenuItem_Click); + this.nESToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.pPUViewerToolStripMenuItem, + this.nameTableViewerToolStripMenuItem, + this.gameGenieCodesToolStripMenuItem}); + this.nESToolStripMenuItem.Name = "nESToolStripMenuItem"; + this.nESToolStripMenuItem.Size = new System.Drawing.Size(38, 20); + this.nESToolStripMenuItem.Text = "&NES"; + // + // pPUViewerToolStripMenuItem + // + this.pPUViewerToolStripMenuItem.Name = "pPUViewerToolStripMenuItem"; + this.pPUViewerToolStripMenuItem.Size = new System.Drawing.Size(176, 22); + this.pPUViewerToolStripMenuItem.Text = "&PPU Viewer"; + this.pPUViewerToolStripMenuItem.Click += new System.EventHandler(this.pPUViewerToolStripMenuItem_Click); + // + // nameTableViewerToolStripMenuItem + // + this.nameTableViewerToolStripMenuItem.Enabled = false; + this.nameTableViewerToolStripMenuItem.Name = "nameTableViewerToolStripMenuItem"; + this.nameTableViewerToolStripMenuItem.Size = new System.Drawing.Size(176, 22); + this.nameTableViewerToolStripMenuItem.Text = "&Name Table Viewer"; + // + // gameGenieCodesToolStripMenuItem + // + this.gameGenieCodesToolStripMenuItem.Enabled = false; + this.gameGenieCodesToolStripMenuItem.Name = "gameGenieCodesToolStripMenuItem"; + this.gameGenieCodesToolStripMenuItem.Size = new System.Drawing.Size(176, 22); + this.gameGenieCodesToolStripMenuItem.Text = "&Game Genie Codes"; // // MainForm // @@ -1346,6 +1382,10 @@ private System.Windows.Forms.ToolStripMenuItem saveConfigToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem loadConfigToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem replayInputLogToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem nESToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem pPUViewerToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem nameTableViewerToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem gameGenieCodesToolStripMenuItem; } } diff --git a/BizHawk.MultiClient/MainForm.MenuItems.cs b/BizHawk.MultiClient/MainForm.MenuItems.cs index 33e39c6b64..9dc42b164c 100644 --- a/BizHawk.MultiClient/MainForm.MenuItems.cs +++ b/BizHawk.MultiClient/MainForm.MenuItems.cs @@ -252,6 +252,7 @@ namespace BizHawk.MultiClient Global.Emulator = new NullEmulator(); RamSearch1.Restart(); Text = "BizHawk"; + HandlePlatformMenus(""); } private void saveStateToolStripMenuItem_Click(object sender, EventArgs e) diff --git a/BizHawk.MultiClient/MainForm.cs b/BizHawk.MultiClient/MainForm.cs index 72cb123edf..e65a794728 100644 --- a/BizHawk.MultiClient/MainForm.cs +++ b/BizHawk.MultiClient/MainForm.cs @@ -369,6 +369,19 @@ namespace BizHawk.MultiClient return ""; } + private void HandlePlatformMenus(string system) + { + switch (system) + { + case "NES": + nESToolStripMenuItem.Visible = true; + break; + default: + nESToolStripMenuItem.Visible = false; + break; + } + } + private bool LoadRom(string path) { var file = new FileInfo(path); @@ -423,7 +436,8 @@ namespace BizHawk.MultiClient { throw new Exception(); } - + + HandlePlatformMenus(Global.Game.System); Global.Emulator.LoadGame(game); Text = DisplayNameForSystem(game.System) + " - " + game.Name; ResetRewindBuffer(); @@ -1044,7 +1058,8 @@ namespace BizHawk.MultiClient private void MainForm_Load(object sender, EventArgs e) { - + //Hide platform specific menus until an appropriate ROM is loaded + nESToolStripMenuItem.Visible = false; } private void frameSkipToolStripMenuItem_DropDownOpened(object sender, EventArgs e) @@ -1108,5 +1123,11 @@ namespace BizHawk.MultiClient InputLog.StartPlayback(); LoadRom(CurrentlyOpenRom); } + + private void pPUViewerToolStripMenuItem_Click(object sender, EventArgs e) + { + NESPPU n = new NESPPU(); + n.Show(); + } } } \ No newline at end of file