Fix: isolated preference initialization

This commit is contained in:
khanhduytran0 committed 2023-07-06 15:55:58 +07:00
1 parent 12cca8506a
commit f34fb7f833
2 files changed
+4 -2

No files matched your search

+3 -2
View File
@@ -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];
}
+1
View File
@@ -346,6 +346,7 @@ int main(int argc, char *argv[]) {
init_setupResolvConf();
init_setupMultiDir();
toggleIsolatedPref(NO);
[PLProfiles updateCurrent];
init_setupAccounts();
init_setupCustomControls();