| 2256 | | #if 1 // For 3.0.8 : pref file change! |
|---|
| 2257 | | /* Message */ |
|---|
| 2258 | | mac_warning( |
|---|
| 2259 | | format("Ignoring %d.%d.%d.%d preferences.", |
|---|
| 2260 | | pref_major, pref_minor, pref_patch, pref_extra)); |
|---|
| 2261 | | |
|---|
| 2262 | | /* Ignore */ |
|---|
| 2263 | | return; |
|---|
| 2264 | | #else |
|---|
| 2265 | | mac_warning(format("Preference file has changed. If you have display problems, delete %s and restart", )); |
|---|
| 2266 | | #endif |
|---|
| | 2258 | /* Version 3.0.8 rewrote the preference file format - don't attempt to load previous versions. */ |
|---|
| | 2259 | if ((pref_major < 3) || |
|---|
| | 2260 | ((pref_major == 3) && (pref_minor == 0) && (pref_patch < 8))) |
|---|
| | 2261 | { |
|---|
| | 2262 | |
|---|
| | 2263 | /* Message */ |
|---|
| | 2264 | mac_warning( |
|---|
| | 2265 | format("Ignoring %d.%d.%d.%d preferences.", |
|---|
| | 2266 | pref_major, pref_minor, pref_patch, pref_extra)); |
|---|
| | 2267 | |
|---|
| | 2268 | /* Ignore */ |
|---|
| | 2269 | return; |
|---|
| | 2270 | } |
|---|
| | 2271 | else |
|---|
| | 2272 | { |
|---|
| | 2273 | FSRef fsRef; |
|---|
| | 2274 | char prefpath[1024]; |
|---|
| | 2275 | CFStringRef bundleid = (CFStringRef)CFBundleGetValueForInfoDictionaryKey(CFBundleGetMainBundle(), kCFBundleIdentifierKey); |
|---|
| | 2276 | CFIndex bufferlength = CFStringGetMaximumSizeForEncoding(CFStringGetLength(bundleid), kCFStringEncodingASCII) + 1; |
|---|
| | 2277 | char bundlename[bufferlength]; |
|---|
| | 2278 | |
|---|
| | 2279 | CFStringGetCString(bundleid, bundlename, bufferlength, kCFStringEncodingASCII); |
|---|
| | 2280 | FSFindFolder(kOnAppropriateDisk, kPreferencesFolderType, kDontCreateFolder, &fsRef); |
|---|
| | 2281 | FSRefMakePath(&fsRef, (UInt8 *)prefpath, 1024); |
|---|
| | 2282 | mac_warning(format("Preference file has changed. If you have display problems, delete %s/%s.plist and restart.", prefpath, bundlename)); |
|---|
| | 2283 | } |
|---|