Fix: isolated preference initialization
This commit is contained in:
1 parent
12cca8506a
commit
f34fb7f833
2 files changed
+4
-2
No files matched your search
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
@@ -346,6 +346,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
init_setupResolvConf();
|
||||
init_setupMultiDir();
|
||||
toggleIsolatedPref(NO);
|
||||
[PLProfiles updateCurrent];
|
||||
init_setupAccounts();
|
||||
init_setupCustomControls();
|
||||
|
||||
Reference in new issue
Block a user