Start a generic Debugger tool, does nothing now except for open and have the standard ui options all tool forms have (such as autoload)
This commit is contained in:
parent
3ded6116a6
commit
4a96e58a24
|
@ -581,6 +581,10 @@ namespace BizHawk.Client.Common
|
|||
public ToolDialogSettings Atari2600DebuggerSettings = new ToolDialogSettings();
|
||||
public bool Atari2600DebuggerAutoload = false;
|
||||
|
||||
// Generic Debugger
|
||||
public ToolDialogSettings GenericDebuggerSettings = new ToolDialogSettings();
|
||||
public bool GenericDebuggerAutoload = false;
|
||||
|
||||
// Analog Hotkey values
|
||||
public int Analog_LargeChange = 10;
|
||||
public int Analog_SmallChange = 1;
|
||||
|
|
|
@ -636,6 +636,19 @@
|
|||
<Compile Include="tools\Cheats\Cheats.Designer.cs">
|
||||
<DependentUpon>Cheats.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="tools\Debugger\GenericDebugger.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="tools\Debugger\GenericDebugger.Designer.cs">
|
||||
<DependentUpon>GenericDebugger.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="tools\Debugger\GenericDebugger.IControlMainform.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="tools\Debugger\GenericDebugger.IToolForm.cs">
|
||||
<DependentUpon>GenericDebugger.cs</DependentUpon>
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="tools\GBA\GBAGPUView.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
|
@ -1208,6 +1221,9 @@
|
|||
<EmbeddedResource Include="tools\Cheats\Cheats.resx">
|
||||
<DependentUpon>Cheats.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="tools\Debugger\GenericDebugger.resx">
|
||||
<DependentUpon>GenericDebugger.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="tools\GBA\GBAGPUView.resx">
|
||||
<DependentUpon>GBAGPUView.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
|
|
@ -182,13 +182,14 @@
|
|||
this.toolStripSeparator10 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.SaveConfigMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.LoadConfigMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.ToolsSubMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.ToolBoxMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripSeparator12 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.RamWatchMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.RamSearchMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.HexEditorMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.TraceLoggerMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.DebuggerMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.TAStudioMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.VirtualPadMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripSeparator11 = new System.Windows.Forms.ToolStripSeparator();
|
||||
|
@ -388,7 +389,7 @@
|
|||
this.EmulationSubMenu,
|
||||
this.ViewSubMenu,
|
||||
this.ConfigSubMenu,
|
||||
this.toolsToolStripMenuItem,
|
||||
this.ToolsSubMenu,
|
||||
this.NESSubMenu,
|
||||
this.PCESubMenu,
|
||||
this.SMSSubMenu,
|
||||
|
@ -1716,15 +1717,16 @@
|
|||
this.LoadConfigMenuItem.Text = "Load Config";
|
||||
this.LoadConfigMenuItem.Click += new System.EventHandler(this.LoadConfigMenuItem_Click);
|
||||
//
|
||||
// toolsToolStripMenuItem
|
||||
// ToolsSubMenu
|
||||
//
|
||||
this.toolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.ToolsSubMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.ToolBoxMenuItem,
|
||||
this.toolStripSeparator12,
|
||||
this.RamWatchMenuItem,
|
||||
this.RamSearchMenuItem,
|
||||
this.HexEditorMenuItem,
|
||||
this.TraceLoggerMenuItem,
|
||||
this.DebuggerMenuItem,
|
||||
this.TAStudioMenuItem,
|
||||
this.VirtualPadMenuItem,
|
||||
this.toolStripSeparator11,
|
||||
|
@ -1733,10 +1735,10 @@
|
|||
this.toolStripSeparator29,
|
||||
this.CreateDualGbXmlMenuItem,
|
||||
this.batchRunnerToolStripMenuItem});
|
||||
this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem";
|
||||
this.toolsToolStripMenuItem.Size = new System.Drawing.Size(48, 19);
|
||||
this.toolsToolStripMenuItem.Text = "&Tools";
|
||||
this.toolsToolStripMenuItem.DropDownOpened += new System.EventHandler(this.toolsToolStripMenuItem_DropDownOpened);
|
||||
this.ToolsSubMenu.Name = "ToolsSubMenu";
|
||||
this.ToolsSubMenu.Size = new System.Drawing.Size(48, 19);
|
||||
this.ToolsSubMenu.Text = "&Tools";
|
||||
this.ToolsSubMenu.DropDownOpened += new System.EventHandler(this.ToolsSubMenu_DropDownOpened);
|
||||
//
|
||||
// ToolBoxMenuItem
|
||||
//
|
||||
|
@ -1783,6 +1785,14 @@
|
|||
this.TraceLoggerMenuItem.Text = "Trace &Logger";
|
||||
this.TraceLoggerMenuItem.Click += new System.EventHandler(this.TraceLoggerMenuItem_Click);
|
||||
//
|
||||
// DebuggerMenuItem
|
||||
//
|
||||
this.DebuggerMenuItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Bug;
|
||||
this.DebuggerMenuItem.Name = "DebuggerMenuItem";
|
||||
this.DebuggerMenuItem.Size = new System.Drawing.Size(183, 22);
|
||||
this.DebuggerMenuItem.Text = "&Debugger";
|
||||
this.DebuggerMenuItem.Click += new System.EventHandler(this.DebuggerMenuItem_Click);
|
||||
//
|
||||
// TAStudioMenuItem
|
||||
//
|
||||
this.TAStudioMenuItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.TAStudio;
|
||||
|
@ -2637,7 +2647,7 @@
|
|||
// settingsToolStripMenuItem
|
||||
//
|
||||
this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";
|
||||
this.settingsToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.settingsToolStripMenuItem.Size = new System.Drawing.Size(125, 22);
|
||||
this.settingsToolStripMenuItem.Text = "&Settings...";
|
||||
this.settingsToolStripMenuItem.Click += new System.EventHandler(this.WondersawnSettingsMenuItem_Click);
|
||||
//
|
||||
|
@ -2657,7 +2667,7 @@
|
|||
//
|
||||
this.OnlineHelpMenuItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Help;
|
||||
this.OnlineHelpMenuItem.Name = "OnlineHelpMenuItem";
|
||||
this.OnlineHelpMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.OnlineHelpMenuItem.Size = new System.Drawing.Size(146, 22);
|
||||
this.OnlineHelpMenuItem.Text = "&Online Help...";
|
||||
this.OnlineHelpMenuItem.Click += new System.EventHandler(this.OnlineHelpMenuItem_Click);
|
||||
//
|
||||
|
@ -2665,14 +2675,14 @@
|
|||
//
|
||||
this.ForumsMenuItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.TAStudio;
|
||||
this.ForumsMenuItem.Name = "ForumsMenuItem";
|
||||
this.ForumsMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.ForumsMenuItem.Size = new System.Drawing.Size(146, 22);
|
||||
this.ForumsMenuItem.Text = "Forums...";
|
||||
this.ForumsMenuItem.Click += new System.EventHandler(this.ForumsMenuItem_Click);
|
||||
//
|
||||
// FeaturesMenuItem
|
||||
//
|
||||
this.FeaturesMenuItem.Name = "FeaturesMenuItem";
|
||||
this.FeaturesMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.FeaturesMenuItem.Size = new System.Drawing.Size(146, 22);
|
||||
this.FeaturesMenuItem.Text = "&Features";
|
||||
this.FeaturesMenuItem.Click += new System.EventHandler(this.FeaturesMenuItem_Click);
|
||||
//
|
||||
|
@ -2680,7 +2690,7 @@
|
|||
//
|
||||
this.AboutMenuItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.CorpHawkSmall;
|
||||
this.AboutMenuItem.Name = "AboutMenuItem";
|
||||
this.AboutMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.AboutMenuItem.Size = new System.Drawing.Size(146, 22);
|
||||
this.AboutMenuItem.Text = "&About";
|
||||
this.AboutMenuItem.Click += new System.EventHandler(this.AboutMenuItem_Click);
|
||||
//
|
||||
|
@ -3358,7 +3368,7 @@
|
|||
private System.Windows.Forms.ToolStripMenuItem EmulationSubMenu;
|
||||
private System.Windows.Forms.ToolStripMenuItem ViewSubMenu;
|
||||
private System.Windows.Forms.ToolStripMenuItem ConfigSubMenu;
|
||||
private System.Windows.Forms.ToolStripMenuItem toolsToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem ToolsSubMenu;
|
||||
private System.Windows.Forms.ToolStripMenuItem HelpSubMenu;
|
||||
private System.Windows.Forms.ToolStripMenuItem PauseMenuItem;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
|
||||
|
@ -3684,6 +3694,7 @@
|
|||
private System.Windows.Forms.ToolStripMenuItem N64ExpansionSlotMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem barcodeReaderToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem FeaturesMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem DebuggerMenuItem;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1092,7 +1092,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
#region Tools
|
||||
|
||||
private void toolsToolStripMenuItem_DropDownOpened(object sender, EventArgs e)
|
||||
private void ToolsSubMenu_DropDownOpened(object sender, EventArgs e)
|
||||
{
|
||||
ToolBoxMenuItem.ShortcutKeyDisplayString = Global.Config.HotkeyBindings["ToolBox"].Bindings;
|
||||
RamWatchMenuItem.ShortcutKeyDisplayString = Global.Config.HotkeyBindings["Ram Watch"].Bindings;
|
||||
|
@ -1113,6 +1113,9 @@ namespace BizHawk.Client.EmuHawk
|
|||
RamWatchMenuItem.Enabled =
|
||||
Global.Emulator.HasMemoryDomains();
|
||||
|
||||
DebuggerMenuItem.Visible = VersionInfo.DeveloperBuild;
|
||||
DebuggerMenuItem.Enabled = Global.Emulator.CanDebug();
|
||||
|
||||
batchRunnerToolStripMenuItem.Visible = VersionInfo.DeveloperBuild;
|
||||
}
|
||||
|
||||
|
@ -1141,6 +1144,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
GlobalWin.Tools.LoadTraceLogger();
|
||||
}
|
||||
|
||||
private void DebuggerMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalWin.Tools.Load<GenericDebugger>();
|
||||
}
|
||||
|
||||
private void TAStudioMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
GlobalWin.Tools.Load<TAStudio>();
|
||||
|
|
|
@ -454,6 +454,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
GlobalWin.Tools.LoadTraceLogger();
|
||||
}
|
||||
|
||||
if (Global.Config.GenericDebuggerAutoload && Global.Emulator.CanDebug())
|
||||
{
|
||||
GlobalWin.Tools.Load<GenericDebugger>();
|
||||
}
|
||||
|
||||
if (Global.Config.Atari2600DebuggerAutoload && Global.Emulator is Atari2600)
|
||||
{
|
||||
GlobalWin.Tools.Load<Atari2600Debugger>();
|
||||
|
@ -3682,6 +3687,5 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
FeaturesMenuItem.Visible = VersionInfo.DeveloperBuild;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,158 @@
|
|||
namespace BizHawk.Client.EmuHawk
|
||||
{
|
||||
partial class GenericDebugger
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GenericDebugger));
|
||||
this.menuStrip1 = new MenuStripEx();
|
||||
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.ExitMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.OptionsSubMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.AutoloadMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.SaveWindowPositionMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.AlwaysOnTopMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.FloatingWindowMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.RestoreDefaultsMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// menuStrip1
|
||||
//
|
||||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.fileToolStripMenuItem,
|
||||
this.OptionsSubMenu});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(638, 24);
|
||||
this.menuStrip1.TabIndex = 1;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
// fileToolStripMenuItem
|
||||
//
|
||||
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.ExitMenuItem});
|
||||
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
|
||||
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
|
||||
this.fileToolStripMenuItem.Text = "&File";
|
||||
//
|
||||
// ExitMenuItem
|
||||
//
|
||||
this.ExitMenuItem.Name = "ExitMenuItem";
|
||||
this.ExitMenuItem.ShortcutKeyDisplayString = "Alt+F4";
|
||||
this.ExitMenuItem.Size = new System.Drawing.Size(152, 22);
|
||||
this.ExitMenuItem.Text = "&Close";
|
||||
this.ExitMenuItem.Click += new System.EventHandler(this.ExitMenuItem_Click);
|
||||
//
|
||||
// OptionsSubMenu
|
||||
//
|
||||
this.OptionsSubMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.AutoloadMenuItem,
|
||||
this.SaveWindowPositionMenuItem,
|
||||
this.AlwaysOnTopMenuItem,
|
||||
this.FloatingWindowMenuItem,
|
||||
this.toolStripSeparator1,
|
||||
this.RestoreDefaultsMenuItem});
|
||||
this.OptionsSubMenu.Name = "OptionsSubMenu";
|
||||
this.OptionsSubMenu.Size = new System.Drawing.Size(61, 20);
|
||||
this.OptionsSubMenu.Text = "&Options";
|
||||
this.OptionsSubMenu.DropDownOpened += new System.EventHandler(this.OptionsSubMenu_DropDownOpened);
|
||||
//
|
||||
// AutoloadMenuItem
|
||||
//
|
||||
this.AutoloadMenuItem.Name = "AutoloadMenuItem";
|
||||
this.AutoloadMenuItem.Size = new System.Drawing.Size(191, 22);
|
||||
this.AutoloadMenuItem.Text = "Autoload";
|
||||
this.AutoloadMenuItem.Click += new System.EventHandler(this.AutoloadMenuItem_Click);
|
||||
//
|
||||
// SaveWindowPositionMenuItem
|
||||
//
|
||||
this.SaveWindowPositionMenuItem.Name = "SaveWindowPositionMenuItem";
|
||||
this.SaveWindowPositionMenuItem.Size = new System.Drawing.Size(191, 22);
|
||||
this.SaveWindowPositionMenuItem.Text = "Save Window Position";
|
||||
this.SaveWindowPositionMenuItem.Click += new System.EventHandler(this.SaveWindowPositionMenuItem_Click);
|
||||
//
|
||||
// AlwaysOnTopMenuItem
|
||||
//
|
||||
this.AlwaysOnTopMenuItem.Name = "AlwaysOnTopMenuItem";
|
||||
this.AlwaysOnTopMenuItem.Size = new System.Drawing.Size(191, 22);
|
||||
this.AlwaysOnTopMenuItem.Text = "Always On Top";
|
||||
this.AlwaysOnTopMenuItem.Click += new System.EventHandler(this.AlwaysOnTopMenuItem_Click);
|
||||
//
|
||||
// FloatingWindowMenuItem
|
||||
//
|
||||
this.FloatingWindowMenuItem.Name = "FloatingWindowMenuItem";
|
||||
this.FloatingWindowMenuItem.Size = new System.Drawing.Size(191, 22);
|
||||
this.FloatingWindowMenuItem.Text = "Floating Window";
|
||||
this.FloatingWindowMenuItem.Click += new System.EventHandler(this.FloatingWindowMenuItem_Click);
|
||||
//
|
||||
// toolStripSeparator1
|
||||
//
|
||||
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||
this.toolStripSeparator1.Size = new System.Drawing.Size(188, 6);
|
||||
//
|
||||
// RestoreDefaultsMenuItem
|
||||
//
|
||||
this.RestoreDefaultsMenuItem.Name = "RestoreDefaultsMenuItem";
|
||||
this.RestoreDefaultsMenuItem.Size = new System.Drawing.Size(191, 22);
|
||||
this.RestoreDefaultsMenuItem.Text = "Restore Defaults";
|
||||
this.RestoreDefaultsMenuItem.Click += new System.EventHandler(this.RestoreDefaultsMenuItem_Click);
|
||||
//
|
||||
// GenericDebugger
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(638, 560);
|
||||
this.Controls.Add(this.menuStrip1);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MainMenuStrip = this.menuStrip1;
|
||||
this.Name = "GenericDebugger";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Debugger";
|
||||
this.Load += new System.EventHandler(this.GenericDebugger_Load);
|
||||
this.menuStrip1.ResumeLayout(false);
|
||||
this.menuStrip1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private MenuStripEx menuStrip1;
|
||||
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem ExitMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem OptionsSubMenu;
|
||||
private System.Windows.Forms.ToolStripMenuItem AutoloadMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem SaveWindowPositionMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem AlwaysOnTopMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem FloatingWindowMenuItem;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
|
||||
private System.Windows.Forms.ToolStripMenuItem RestoreDefaultsMenuItem;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace BizHawk.Client.EmuHawk
|
||||
{
|
||||
public partial class GenericDebugger : IControlMainform
|
||||
{
|
||||
public bool WantsToControlReadOnly { get { return false; } }
|
||||
public void ToggleReadOnly() { }
|
||||
|
||||
public bool WantsToControlStopMovie { get { return false; } }
|
||||
public void StopMovie(bool supressSave) { }
|
||||
|
||||
// TODO: We probably want to do this
|
||||
public bool WantsToControlRewind { get { return false; } }
|
||||
public void CaptureRewind() { }
|
||||
public bool Rewind() { return false; }
|
||||
|
||||
public bool WantsToControlRestartMovie { get { return false; } }
|
||||
public void RestartMovie() { }
|
||||
|
||||
// TODO: We want to prevent movies and probably other things
|
||||
}
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
namespace BizHawk.Client.EmuHawk
|
||||
{
|
||||
public partial class GenericDebugger : IToolForm
|
||||
{
|
||||
public void UpdateValues()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
public void FastUpdate()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
public void Restart()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
public bool AskSaveChanges()
|
||||
{
|
||||
// TODO
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool UpdateBefore
|
||||
{
|
||||
get { return false; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,115 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using BizHawk.Client.Common;
|
||||
|
||||
namespace BizHawk.Client.EmuHawk
|
||||
{
|
||||
public partial class GenericDebugger : Form, IToolForm, IControlMainform
|
||||
{
|
||||
private int _defaultWidth;
|
||||
private int _defaultHeight;
|
||||
|
||||
public GenericDebugger()
|
||||
{
|
||||
InitializeComponent();
|
||||
TopMost = Global.Config.GenericDebuggerSettings.TopMost;
|
||||
Closing += (o, e) => Shutdown();
|
||||
}
|
||||
|
||||
private void GenericDebugger_Load(object sender, EventArgs e)
|
||||
{
|
||||
_defaultWidth = Size.Width;
|
||||
_defaultHeight = Size.Height;
|
||||
|
||||
if (Global.Config.GenericDebuggerSettings.UseWindowPosition)
|
||||
{
|
||||
Location = Global.Config.GenericDebuggerSettings.WindowPosition;
|
||||
}
|
||||
|
||||
if (Global.Config.GenericDebuggerSettings.UseWindowSize)
|
||||
{
|
||||
Size = Global.Config.GenericDebuggerSettings.WindowSize;
|
||||
}
|
||||
}
|
||||
|
||||
private void Shutdown()
|
||||
{
|
||||
SaveConfigSettings();
|
||||
}
|
||||
|
||||
private void SaveConfigSettings()
|
||||
{
|
||||
if (Global.Config.GenericDebuggerSettings.SaveWindowPosition)
|
||||
{
|
||||
Global.Config.GenericDebuggerSettings.Wndx = Location.X;
|
||||
Global.Config.GenericDebuggerSettings.Wndy = Location.Y;
|
||||
Global.Config.GenericDebuggerSettings.Width = Right - Left;
|
||||
Global.Config.GenericDebuggerSettings.Height = Bottom - Top;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnShown(EventArgs e)
|
||||
{
|
||||
RefreshFloatingWindowControl();
|
||||
base.OnShown(e);
|
||||
}
|
||||
|
||||
private void RefreshFloatingWindowControl()
|
||||
{
|
||||
Owner = Global.Config.RamSearchSettings.FloatingWindow ? null : GlobalWin.MainForm;
|
||||
}
|
||||
|
||||
#region Menu Items
|
||||
|
||||
private void ExitMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
||||
private void OptionsSubMenu_DropDownOpened(object sender, EventArgs e)
|
||||
{
|
||||
AutoloadMenuItem.Checked = Global.Config.GenericDebuggerAutoload;
|
||||
SaveWindowPositionMenuItem.Checked = Global.Config.GenericDebuggerSettings.SaveWindowPosition;
|
||||
AlwaysOnTopMenuItem.Checked = Global.Config.GenericDebuggerSettings.TopMost;
|
||||
FloatingWindowMenuItem.Checked = Global.Config.GenericDebuggerSettings.FloatingWindow;
|
||||
}
|
||||
|
||||
private void AutoloadMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
Global.Config.GenericDebuggerAutoload ^= true;
|
||||
}
|
||||
|
||||
private void SaveWindowPositionMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
Global.Config.GenericDebuggerSettings.SaveWindowPosition ^= true;
|
||||
}
|
||||
|
||||
private void AlwaysOnTopMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
TopMost = Global.Config.GenericDebuggerSettings.TopMost ^= true;
|
||||
}
|
||||
|
||||
private void FloatingWindowMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
Global.Config.GenericDebuggerSettings.FloatingWindow ^= true;
|
||||
RefreshFloatingWindowControl();
|
||||
}
|
||||
|
||||
private void RestoreDefaultsMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
Size = new Size(_defaultWidth, _defaultHeight);
|
||||
Global.Config.GenericDebuggerSettings = new ToolDialogSettings();
|
||||
TopMost = Global.Config.GenericDebuggerSettings.TopMost;
|
||||
RefreshFloatingWindowControl();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,148 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAABMLAAATCwAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAEpWMf/m5ub/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPUgo/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADJBI/8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAEpWMf8AAAAAAAAAAAAAAAAyOSD/eWId/3hjHf95Yx3/eWId/wAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARU4t/wAAAAB5ZR//eWUg/4fJpv+Bx5//ecKV/yt8
|
||||
Ov94ZB//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADlFKP8AAAAAeWch/5zSuP+Z0rX/kc6u/zyN
|
||||
U/95w5b/emYi/wAAAAAAAAAASk4x/wAAAAAAAAAAAAAAAAAAAAAyPiP/emgk/67cxv+038v/rtvH/1in
|
||||
c/+Rzq//gcef/3poJP8yOSD/PU4t/wAAAAAAAAAAAAAAAAAAAABFTjH/OUUo/3tqJ//C59X/zOvb/3/B
|
||||
kv+u28b/mdK2/4fJpv96ayf/AAAAAAAAAAAAAAAAAAAAAFNWOP9TVjj/AAAAAAAAAAB7bSr/zOrb/9vz
|
||||
5//M69v/tN/L/53SuP98bSr/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAr9zH/yJq
|
||||
Lv/M69v/wubV/67cxv97byz/AAAAAAAAAAA9Ti3/SlYx/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANvz
|
||||
5/+v28f/fHAt/3xwLf98cC3/8vLy/zI5IP85QSj/AAAAAAAAAAAAAAAAAAAAAEpWMf9KTjH/RU4t/z1I
|
||||
KP98cC3/fHAt//Pz8/85RSj/8/Pz/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAPUgt/wAAAAAAAAAAAAAAAEVOMf8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAEpOMf8AAAAAAAAAAAAAAABTVjj/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAABOVjj/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||
AAAAAAAA+f8AAP3/AAD9/wAA3B8AAOgPAADoDQAA4AMAAMAPAAAwHwAA8DMAAPAPAAAAfwAA938AAPd/
|
||||
AAD3/////////w==
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
Loading…
Reference in New Issue