diff --git a/Core/Debugger.cpp b/Core/Debugger.cpp index 6d09df2..35eb81a 100644 --- a/Core/Debugger.cpp +++ b/Core/Debugger.cpp @@ -329,9 +329,18 @@ void Debugger::ProcessEvent(EventType type) break; case EventType::GbStartFrame: + if(_settings->CheckFlag(EmulationFlags::GameboyMode)) { + _scriptManager->ProcessEvent(EventType::StartFrame); + } _console->GetNotificationManager()->SendNotification(ConsoleNotificationType::EventViewerRefresh, (void*)CpuType::Gameboy); GetEventManager(CpuType::Gameboy)->ClearFrameEvents(); break; + + case EventType::GbEndFrame: + if(_settings->CheckFlag(EmulationFlags::GameboyMode)) { + _scriptManager->ProcessEvent(EventType::EndFrame); + } + break; case EventType::Reset: Reset();