mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 08:43:38 +01:00
Windows: Initialize WindowsHost in EmuThread.
This seems like a more appropriate place, and a more appropriate thread, for it to be initialized on.
This commit is contained in:
1 parent
80d4673cd5
commit
793178c106
5 files changed
+17
-20
No files matched your search
+2
-2
@@ -330,7 +330,7 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
|
||||
VFSRegister("", new DirectoryAssetReader("assets/"));
|
||||
VFSRegister("", new DirectoryAssetReader(savegame_dir));
|
||||
|
||||
#if (defined(MOBILE_DEVICE) || !defined(USING_QT_UI)) && !PPSSPP_PLATFORM(WINDOWS)
|
||||
#if (defined(MOBILE_DEVICE) || !defined(USING_QT_UI)) && !PPSSPP_PLATFORM(UWP)
|
||||
if (host == nullptr) {
|
||||
host = new NativeHost();
|
||||
}
|
||||
@@ -1087,7 +1087,7 @@ void NativeShutdown() {
|
||||
gl_lost_manager_shutdown();
|
||||
}
|
||||
|
||||
#if !PPSSPP_PLATFORM(WINDOWS)
|
||||
#if !PPSSPP_PLATFORM(UWP)
|
||||
delete host;
|
||||
host = nullptr;
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user