Remove some now useless logic in the Restart() method of some tools (checking IsHandleCreated and IsDisposed)
This commit is contained in:
parent
1504f8d441
commit
ffe3be09a4
|
@ -38,10 +38,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
public void Restart()
|
public void Restart()
|
||||||
{
|
{
|
||||||
if (!IsHandleCreated || IsDisposed)
|
// TODO
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool AskSaveChanges()
|
public bool AskSaveChanges()
|
||||||
|
|
|
@ -133,11 +133,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
public void Restart()
|
public void Restart()
|
||||||
{
|
{
|
||||||
if (!IsHandleCreated || IsDisposed)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var theDomain = _domain.Name.ToLower() == "file on disk" ? 999 : GetDomainInt(_domain.Name);
|
var theDomain = _domain.Name.ToLower() == "file on disk" ? 999 : GetDomainInt(_domain.Name);
|
||||||
|
|
||||||
SetMemoryDomainMenu(); // Calls update routines, TODO: refactor, that is confusing!
|
SetMemoryDomainMenu(); // Calls update routines, TODO: refactor, that is confusing!
|
||||||
|
|
|
@ -109,11 +109,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
public void Restart()
|
public void Restart()
|
||||||
{
|
{
|
||||||
if (!IsHandleCreated || IsDisposed)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
ClearList();
|
ClearList();
|
||||||
TraceView.Columns[0].Text = Tracer.Header;
|
TraceView.Columns[0].Text = Tracer.Header;
|
||||||
}
|
}
|
||||||
|
|
|
@ -286,11 +286,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
public void Restart()
|
public void Restart()
|
||||||
{
|
{
|
||||||
if (!IsHandleCreated || IsDisposed)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
_settings.Domain = Core.MemoryDomains.MainMemory;
|
_settings.Domain = Core.MemoryDomains.MainMemory;
|
||||||
MessageLabel.Text = "Search restarted";
|
MessageLabel.Text = "Search restarted";
|
||||||
DoDomainSizeCheck();
|
DoDomainSizeCheck();
|
||||||
|
|
Loading…
Reference in New Issue