Added windows OS check

This commit is contained in:
Jeroen Ketelaar
2014-03-07 02:06:18 +01:00
parent 905986467b
commit 340594a882
+11
View File
@@ -15,6 +15,7 @@ public class Core {
private static boolean verbose; private static boolean verbose;
private static boolean dump; private static boolean dump;
private static boolean loadLocal; //Loads both local and public scripts/servers private static boolean loadLocal; //Loads both local and public scripts/servers
private static String OS = System.getProperty("os.name").toLowerCase();
/** /**
* Enabled loadLocal mode * Enabled loadLocal mode
@@ -86,6 +87,16 @@ public class Core {
} }
} }
/**
* Determines if user is using a windows OS
* @return <b>true</b> if user is using a windows OS
*/
public static boolean isWindows() {
return (OS.indexOf("win") >= 0);
}
/** /**
* Checks for updates. * Checks for updates.
* *