package com.github.to2mbn.jmccc.util;

public enum OsTypes {
    WINDOWS,
    LINUX,
    OSX,
    UNKNOWN;
    
    public static final OsTypes CURRENT = getCurrent();
    
    private static OsTypes getCurrent() {
        String name = System.getProperty("os.name").toLowerCase();
        if (name.contains("win")) return WINDOWS;
        else if (name.contains("linux")) return LINUX;
        else if (name.contains("osx")) return OSX;
        else return UNKNOWN;
    }

    public String getFileSpearator() {
        return System.getProperty("file.separator");
    }

    public String getPathSpearator() {
        return System.getProperty("path.separator");
    }
    
    public String getLineSpearator() {
        return System.getProperty("line.separator");
    }
}

@@ -100,21 +100,17 @@
 NKNOWN;%0A
-    
 %0A
+
     publ
@@ -157,21 +157,17 @@
 rent();%0A
-    
 %0A
+
     priv
@@ -215,17 +215,19 @@
  String 
-n
+osN
 ame = Sy
@@ -257,23 +257,10 @@
 me%22)
-.toLowerCase()
 ;
+%0A
 %0A   
@@ -272,37 +272,53 @@
 if (
-n
+osN
 ame.
-contains(%22w
+equals(%22L
 in
+ux
 %22))
+ %7B%0A           
  return 
 WIND
@@ -313,23 +313,21 @@
  return 
-WINDOWS
+LINUX
 ;%0A      
@@ -319,32 +319,34 @@
 n LINUX;%0A       
+ %7D
  else if (name.c
@@ -343,39 +343,59 @@
 if (
-n
+osN
 ame.
-contains(%22linux%22))
+startsWith(%22Windows%22)) %7B%0A           
  return 
 LINU
@@ -382,37 +382,39 @@
          return 
-LINUX
+WINDOWS
 ;%0A        else i
@@ -402,24 +402,26 @@
 OWS;%0A       
+ %7D
  else if (na
@@ -422,29 +422,48 @@
 if (
-n
+osN
 ame.
-contains(%22osx%22))
+equals(%22Mac OS X%22)) %7B%0A           
  ret
@@ -482,29 +482,63 @@
     
+ %7D
  else 
-return UNKNOWN;
+%7B%0A            return OsTypes.UNKNOWN;%0A        %7D
 %0A   
@@ -738,20 +738,16 @@
 ;%0A    %7D%0A
-    
 %0A    pub

fix os checking