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:
parent
f701459421
commit
e47f0b8feb
1 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue