Do not spawn debugger if no 68k is initialized. Probably should disable menu option instead?

This commit is contained in:
iq_132 2012-02-05 05:14:20 +00:00
parent 4c3ddb77cd
commit 6183bfb0c4
1 changed files with 8 additions and 0 deletions

View File

@ -30,6 +30,10 @@ static int nMemdumpAttrib;
static bool bBreakpointHit;
#if defined FBA_DEBUG
extern UINT8 DebugCPU_SekInitted;
#endif
struct DbgM68000State {
unsigned int a[8]; unsigned int d[8];
unsigned int pc;
@ -1535,6 +1539,10 @@ int DebugCreate()
#if defined (FBA_DEBUG)
if (DebugCPU_SekInitted == 0) {
return 1;
}
if (bDrvOkay == 0) {
return 1;
}