Debugger - Restart() logic

This commit is contained in:
adelikat 2014-12-23 17:44:59 +00:00
parent 299e8cffaf
commit 025299ebd1
3 changed files with 12 additions and 5 deletions

View File

@ -134,7 +134,8 @@ namespace BizHawk.Client.EmuHawk
public void Restart()
{
// TODO
DisengageDebugger();
EngageDebugger();
}
public bool AskSaveChanges()

View File

@ -28,15 +28,13 @@ namespace BizHawk.Client.EmuHawk
private void GenericDebugger_Load(object sender, EventArgs e)
{
SetDisassemblerItemCount();
EngageDebugger();
UpdateDisassembler();
}
private void EngageDebugger()
{
DisassemblyLines.Clear();
if (CanDisassemble)
{
try
@ -72,10 +70,14 @@ namespace BizHawk.Client.EmuHawk
Text = Disassembler.Cpu
});
}
SetDisassemblerItemCount();
UpdateDisassembler();
}
else
{
DisassemblerBox.Enabled = false;
DisassemblerView.ItemCount = 0;
DisassemblerBox.Controls.Add(new Label
{
Location = new Point(35, 23),

View File

@ -129,6 +129,8 @@ namespace BizHawk.Client.EmuHawk
public void GenerateUI()
{
this.SuspendLayout();
this.Controls.Clear();
var canget = CanGetCpuRegisters;
var canset = CanSetCpuRegisters;
@ -242,6 +244,8 @@ namespace BizHawk.Client.EmuHawk
}
this.Controls.Add(p);
this.ResumeLayout();
}
}
}