Core: Ensure exception is reset on reset.

Otherwise, we hold on and show this during stepping which is confusing.
This commit is contained in:
Unknown W. Brackets committed 2021-08-08 23:01:35 -07:00
1 parent 9c49fba595
commit bd99574e5b
1 file changed
+4
+4
View File
@@ -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);
}