Do not spawn debugger if no 68k is initialized. Probably should disable menu option instead?
This commit is contained in:
parent
4c3ddb77cd
commit
6183bfb0c4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue