Fix build without BKPT_SUPPORT

This commit is contained in:
bgk 2008-06-16 18:57:58 +00:00
parent b780693c37
commit c64fd54be9
2 changed files with 4 additions and 0 deletions

View File

@ -2819,6 +2819,7 @@ extern int cpuNextEvent;
extern void debuggerBreakOnWrite(u32 , u32, u32, int, int);
#ifdef BKPT_SUPPORT
static u8 cheatsGetType(u32 address)
{
switch(address >> 24) {
@ -2838,6 +2839,7 @@ static u8 cheatsGetType(u32 address)
}
return 0;
}
#endif
void cheatsWriteMemory(u32 address, u32 value)
{

View File

@ -467,6 +467,7 @@ void remoteWriteWatch(char *p, bool active)
return;
}
#ifdef BKPT_SUPPORT
for(int i = 0; i < count; i++) {
if((address >> 24) == 2)
freezeWorkRAM[address & 0x3ffff] = active;
@ -474,6 +475,7 @@ void remoteWriteWatch(char *p, bool active)
freezeInternalRAM[address & 0x7fff] = active;
address++;
}
#endif
remotePutPacket("OK");
}