From 04cfe0c36dd068ef10bd12f9588f331262835d08 Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Wed, 18 Nov 2015 16:00:11 +0100 Subject: [PATCH] Windows: inverted folder entries, as Shell Folders is more reliable (when present) --- arduino-core/src/processing/app/windows/Platform.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arduino-core/src/processing/app/windows/Platform.java b/arduino-core/src/processing/app/windows/Platform.java index 3bc051c84..13fd54937 100644 --- a/arduino-core/src/processing/app/windows/Platform.java +++ b/arduino-core/src/processing/app/windows/Platform.java @@ -59,12 +59,12 @@ public class Platform extends processing.app.Platform { } private void recoverSettingsFolderPath() { - String path = readRegistryEntry(new String[]{"User Shell Folders", "Shell Folders"}, "Local AppData"); + String path = readRegistryEntry(new String[]{"Shell Folders", "User Shell Folders"}, "Local AppData"); this.settingsFolder = new File(path, "Arduino15"); } private void recoverDefaultSketchbookFolder() { - String path = readRegistryEntry(new String[]{"User Shell Folders", "Shell Folders"}, "Personal"); + String path = readRegistryEntry(new String[]{"Shell Folders", "User Shell Folders"}, "Personal"); this.defaultSketchbookFolder = new File(path, "Arduino"); }