Debugger: Lua - Allow regular start/end frame events to work normally when in GB-only mode

Allows reusing identical scripts between both GB and SNES modes
This commit is contained in:
Sour 2020-07-08 21:07:00 -04:00
parent f701459421
commit e47f0b8feb

View file

@ -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();