Change the MacOS preference suffix to .macosx

Previously, preferences suffixed with .macos were treated specially,
but the default preferences.txt used .macosx.

I couldn't find when or how this was broken exactly - it seems
Processing used .macosx but this code was reimplemented for Arduino in
commit 33f5c53 (Implemented OS specific preferences) using .macos.

The effects of this have not been tested on OSX, but this might fix some
problems caused by wrong defaults on OSX.
This commit is contained in:
Matthijs Kooijman 2014-04-14 15:29:54 +02:00
parent d2505a08f6
commit aa46fdb978
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ public class PreferencesMap extends LinkedHashMap<String, String> {
key = processPlatformSuffix(key, ".linux", Base.isLinux());
key = processPlatformSuffix(key, ".windows", Base.isWindows());
key = processPlatformSuffix(key, ".macos", Base.isMacOS());
key = processPlatformSuffix(key, ".macosx", Base.isMacOS());
if (key != null)
put(key, value);