mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
Windows: inverted folder entries, as Shell Folders is more reliable (when
present)
This commit is contained in:
parent
9729b1b069
commit
04cfe0c36d
@ -59,12 +59,12 @@ public class Platform extends processing.app.Platform {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void recoverSettingsFolderPath() {
|
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");
|
this.settingsFolder = new File(path, "Arduino15");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void recoverDefaultSketchbookFolder() {
|
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");
|
this.defaultSketchbookFolder = new File(path, "Arduino");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user