Fix to partial restarts (when switching backends), plus misc. Helps #9666

This commit is contained in:
Henrik Rydgard committed 2017-05-05 12:31:06 +02:00
1 parent e304325ed8
commit d3ff35b2c0
7 files changed
+7 -12

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(UWP)
#if (defined(MOBILE_DEVICE) || !defined(USING_QT_UI)) && !PPSSPP_PLATFORM(WINDOWS)
if (host == nullptr) {
host = new NativeHost();
}
@@ -1087,7 +1087,7 @@ void NativeShutdown() {
gl_lost_manager_shutdown();
}
#if !PPSSPP_PLATFORM(UWP)
#if !PPSSPP_PLATFORM(WINDOWS)
delete host;
host = nullptr;
#endif