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:
Unknown W. Brackets committed 2017-05-05 06:53:48 -07:00
1 parent 80d4673cd5
commit 793178c106
5 files changed
+17 -20

No files matched your search

+2 -2
View File
@@ -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