Fix compile failure when debugger support is disabled.

This commit is contained in:
Stephen Anthony 2018-07-13 12:31:37 -02:30
parent f3f966d12c
commit c2bfeb5799
2 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,8 @@
#include "Settings.hxx"
#include "Vec.hxx"
#include "TIA.hxx"
#include "M6532.hxx"
#include "System.hxx"
#include "M6502.hxx"
#include "DispatchResult.hxx"

View File

@ -670,8 +670,10 @@ double OSystem::dispatchEmulation(EmulationWorker& emulationWorker)
// Stop the worker and wait until it has finished
uInt64 totalCycles = emulationWorker.stop();
#ifdef DEBUGGER_SUPPORT
// Break or trap? -> start debugger
if (dispatchResult.getStatus() == DispatchResult::Status::debugger) myDebugger->start();
#endif
// Handle frying
if (dispatchResult.getStatus() == DispatchResult::Status::ok && myEventHandler->frying())