public static int getPlatform() {
		if (platform != -1) return platform;
		String name = System.getProperty("os.name", "").toLowerCase();
		if (name.startsWith("mac")) return platform = MAC;
		if (name.startsWith("windows")) return platform = WINDOWS;
		if (name.startsWith("microsoft")) return platform = WINDOWS;
		if (name.startsWith("ms")) return platform = WINDOWS;
		if (name.startsWith("unix")) return platform = UNIX;
		if (name.startsWith("linux")) return platform = UNIX;
		return platform = UNKNOWN;
	}