Made the debugger window more persistent, both because the debugger can now be opened without a game loaded, and because someone complained about how the debugger closed when you went to File>Close, even though it would return on game load.
This commit is contained in:
parent
4681d20481
commit
19b5cf13f5
|
@ -135,13 +135,7 @@ int storePreferences(char* romname)
|
||||||
wasinDebugger = inDebugger;
|
wasinDebugger = inDebugger;
|
||||||
|
|
||||||
// Prevent any attempts at file usage if the debugger is open
|
// Prevent any attempts at file usage if the debugger is open
|
||||||
if (wasinDebugger) {
|
// Moved debugger exit code due to complaints and the Debugger menu option being enabled
|
||||||
DebuggerExit();
|
|
||||||
}
|
|
||||||
|
|
||||||
while ((inDebugger) || (Counter == 300000)) {
|
|
||||||
Counter++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!debuggerWasActive)
|
if (!debuggerWasActive)
|
||||||
{
|
{
|
||||||
|
@ -185,6 +179,7 @@ int storePreferences(char* romname)
|
||||||
void DoDebuggerRunCheck()
|
void DoDebuggerRunCheck()
|
||||||
{
|
{
|
||||||
if (wasinDebugger){
|
if (wasinDebugger){
|
||||||
|
DebuggerExit();
|
||||||
DoDebug(0);
|
DoDebug(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue