Exemple #1
0
 public static void startLibraries() throws IOException {
   os = System.getProperty("os.name").toLowerCase();
   String arch = System.getProperty("os.arch");
   if (os.contains("win")) {
     loadLib("/jinput-dx8.dll");
     loadLib("/jinput-dx8_64.dll");
     loadLib("/jinput-raw.dll");
     loadLib("/jinput-raw_64.dll");
     loadLib("/jinput-wintab.dll");
   } else if (os.contains("mac")) {
     loadLib("/libjinput-osx.jnilib");
   } else if (os.contains("nux")) {
     // If this gives an Exception, update the maven project libraries with package.
     loadLib("/libjinput-linux.so");
     loadLib("/libjinput-linux64.so");
   } else {
     Logger.info("Your OS is Not Supported! Please report FULL log to ScotchOARKit on GitHub");
     System.exit(0);
   }
 }
Exemple #2
0
 public static void main(String[] args) throws IOException {
   Logger.info(System.getProperty("os.name"));
   properties = new Properties();
   properties.load(
       Thread.currentThread()
           .getContextClassLoader()
           .getResourceAsStream("com/scotch/OARKit/assets/properties/default.properties"));
   DevMode = Main.properties.getProperty("insideDev");
   if (args.length > 0 && args[0].equals("server")) {
     new Server();
   } else {
     startLibraries();
     launch(args);
   }
 }