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:
ugetab 2009-11-15 01:52:29 +00:00
parent 4681d20481
commit 19b5cf13f5
1 changed files with 2 additions and 7 deletions

View File

@ -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);
} }
} }