mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-19 13:54:23 +01:00
Cleanup
This commit is contained in:
parent
649bc6d778
commit
d6ea1c05a6
@ -7,7 +7,7 @@ public class OSUtils {
|
||||
*/
|
||||
static public boolean isWindows() {
|
||||
//return PApplet.platform == PConstants.WINDOWS;
|
||||
return System.getProperty("os.name").indexOf("Windows") != -1;
|
||||
return System.getProperty("os.name").contains("Windows");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -15,7 +15,7 @@ public class OSUtils {
|
||||
*/
|
||||
static public boolean isLinux() {
|
||||
//return PApplet.platform == PConstants.LINUX;
|
||||
return System.getProperty("os.name").indexOf("Linux") != -1;
|
||||
return System.getProperty("os.name").contains("Linux");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -23,7 +23,7 @@ public class OSUtils {
|
||||
*/
|
||||
static public boolean isMacOS() {
|
||||
//return PApplet.platform == PConstants.MACOSX;
|
||||
return System.getProperty("os.name").indexOf("Mac") != -1;
|
||||
return System.getProperty("os.name").contains("Mac");
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user