mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-18 17:00:30 +02:00
Fix lifecycle-notification assert problem (was called from wrong thread)
This commit is contained in:
1 parent
f6050a442c
commit
a107d75e38
2 files changed
+5
-2
No files matched your search
@@ -26,6 +26,7 @@
|
||||
#include "Common/Profiler/Profiler.h"
|
||||
|
||||
#include "Common/GraphicsContext.h"
|
||||
#include "Common/Thread/ThreadUtil.h"
|
||||
#include "Common/Log.h"
|
||||
#include "Core/Core.h"
|
||||
#include "Core/Config.h"
|
||||
@@ -143,6 +144,8 @@ void Core_ListenLifecycle(CoreLifecycleFunc func) {
|
||||
}
|
||||
|
||||
void Core_NotifyLifecycle(CoreLifecycle stage) {
|
||||
AssertCurrentThreadName("EmuThread");
|
||||
|
||||
if (stage == CoreLifecycle::STARTING) {
|
||||
Core_ResetException();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user