diff --git a/Natives/LauncherPreferences.m b/Natives/LauncherPreferences.m index 6135e84d..aa949f61 100644 --- a/Natives/LauncherPreferences.m +++ b/Natives/LauncherPreferences.m @@ -13,12 +13,13 @@ void loadPreferences(BOOL reset) { [pref reset]; } else { pref = [[PLPreferences alloc] initWithAutomaticMigrator]; - pref.instancePath = [NSString stringWithFormat:@"%s/launcher_preferences.plist", getenv("POJAV_GAME_DIR")]; - [pref toggleIsolationForced:NO]; } } void toggleIsolatedPref(BOOL forceEnable) { + if (!pref.instancePath) { + pref.instancePath = [NSString stringWithFormat:@"%s/launcher_preferences.plist", getenv("POJAV_GAME_DIR")]; + } [pref toggleIsolationForced:forceEnable]; } diff --git a/Natives/main.m b/Natives/main.m index f5286d49..ec4fa4e0 100644 --- a/Natives/main.m +++ b/Natives/main.m @@ -346,6 +346,7 @@ int main(int argc, char *argv[]) { init_setupResolvConf(); init_setupMultiDir(); + toggleIsolatedPref(NO); [PLProfiles updateCurrent]; init_setupAccounts(); init_setupCustomControls();