Don't create Host objects except in headless/unittest

This commit is contained in:
Henrik Rydgård
2023-03-25 10:47:01 +01:00
parent 7d0eac730f
commit d586ec0d5e
34 changed files with 0 additions and 43 deletions
-6
View File
@@ -448,12 +448,6 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
#endif
g_VFS.Register("", new DirectoryReader(Path(savegame_dir)));
#if (defined(MOBILE_DEVICE) || !defined(USING_QT_UI)) && !PPSSPP_PLATFORM(UWP)
if (host == nullptr) {
host = new Host();
}
#endif
g_Config.defaultCurrentDirectory = Path("/");
g_Config.internalDataDirectory = Path(savegame_dir);