//␉PrefsProp::instance().open([kPreferencesFilePath UTF8String], CreateIfNotExist,␊ |
//␉␉␉␉␉␉␉␉␉␉␉ [self auth]);␊ |
␉␊ |
␉// test with preferences file already created and when no prefs exists␊ |
␉␊ |
␉id oldGlobalPreferences = [ [NSDictionary dictionaryWithContentsOfFile: ␊ |
␉␉␉␉␉␉␉␉ kPreferencesFilePath ] retain];␊ |
␉␊ |
|
␉if (oldGlobalPreferences!=nil)␊ |
␉{␊ |
␉␉mPreferenceFileVersion= [[oldGlobalPreferences objectForKey: keyPreferencesFileVersion] intValue ];␊ |
␉␉[PreferencesControllerBase doForEachGroup: SetDefaultValues withOption: oldGlobalPreferences];␊ |
␉␉[PreferencesControllerBase doForEachGroup: LoadPreferencesOptions withOption: oldGlobalPreferences];␊ |
␉␉[mPartitionsDict addEntriesFromDictionary: [oldGlobalPreferences objectForKey: keyPartitionsList] ];␊ |
␉}␊ |