From bd99574e5ba36bcdde291841d32aeeb82c532285 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 8 Aug 2021 23:01:35 -0700 Subject: [PATCH] Core: Ensure exception is reset on reset. Otherwise, we hold on and show this during stepping which is confusing. --- Core/Core.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Core/Core.cpp b/Core/Core.cpp index e7d95c685a..4a18bbb03e 100644 --- a/Core/Core.cpp +++ b/Core/Core.cpp @@ -85,6 +85,10 @@ void Core_ListenLifecycle(CoreLifecycleFunc func) { } void Core_NotifyLifecycle(CoreLifecycle stage) { + if (stage == CoreLifecycle::STARTING) { + g_exceptionInfo.type = ExceptionType::NONE; + } + for (auto func : lifecycleFuncs) { func(stage); }