From ae5a1a118378951d7cb23497d7bdbea518a154f5 Mon Sep 17 00:00:00 2001 From: Souryo Date: Tue, 3 Oct 2017 18:40:26 -0400 Subject: [PATCH] Debugger: Lua - Fixed eventType.reset event callback --- Core/Console.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Core/Console.cpp b/Core/Console.cpp index 31b0f406..b3d03018 100644 --- a/Core/Console.cpp +++ b/Core/Console.cpp @@ -292,6 +292,13 @@ void Console::ResetComponents(bool softReset) SoundMixer::StopAudio(true); MessageManager::SendNotification(softReset ? ConsoleNotificationType::GameReset : ConsoleNotificationType::GameLoaded); + + if(softReset) { + shared_ptr debugger = _debugger; + if(debugger) { + debugger->ProcessEvent(EventType::Reset); + } + } } void Console::Stop()