mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-22 08:22:04 +03:00
Fixed "runtime.hardware.path" and "runtime.platform.path" values
"runtime.hardware.path" now contains the path to the hardware folder of the currently selected board and "runtime.platform.path" the path to the specific platform. This should fix #1176 and #1761.
This commit is contained in:
@ -1554,6 +1554,10 @@ public class Base {
|
||||
Preferences.set("target_platform", targetPlatform.getId());
|
||||
Preferences.set("board", targetBoard.getId());
|
||||
|
||||
File platformFolder = targetPlatform.getFolder();
|
||||
Preferences.set("runtime.platform.path", platformFolder.getAbsolutePath());
|
||||
Preferences.set("runtime.hardware.path", platformFolder.getParentFile().getAbsolutePath());
|
||||
|
||||
filterVisibilityOfSubsequentBoardMenus(targetBoard, 1);
|
||||
|
||||
onBoardOrPortChange();
|
||||
|
@ -231,7 +231,6 @@ public class Preferences {
|
||||
|
||||
// set some runtime constants (not saved on preferences file)
|
||||
File hardwareFolder = Base.getHardwareFolder();
|
||||
table.put("runtime.hardware.path", hardwareFolder.getAbsolutePath());
|
||||
table.put("runtime.ide.path", hardwareFolder.getParentFile().getAbsolutePath());
|
||||
table.put("runtime.ide.version", "" + Base.REVISION);
|
||||
|
||||
|
Reference in New Issue
Block a user