mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-20 09:01:20 -08:00
42 lines
830 B
Java
42 lines
830 B
Java
package io.eiren.vr;
|
|
|
|
import java.io.File;
|
|
|
|
import io.eiren.gui.VRServerGUI;
|
|
import io.eiren.util.logging.LogManager;
|
|
|
|
public class Main {
|
|
|
|
public static String VERSION = "0.0.15";
|
|
|
|
public static VRServer vrServer;
|
|
|
|
@SuppressWarnings("unused")
|
|
public static void main(String[] args) {
|
|
System.setProperty("awt.useSystemAAFontSettings", "on");
|
|
System.setProperty("swing.aatext", "true");
|
|
|
|
File dir = new File("").getAbsoluteFile();
|
|
try {
|
|
LogManager.initialize(new File(dir, "logs/"), dir);
|
|
} catch(Exception e1) {
|
|
e1.printStackTrace();
|
|
}
|
|
|
|
try {
|
|
vrServer = new VRServer();
|
|
vrServer.start();
|
|
new VRServerGUI(vrServer);
|
|
} catch(Throwable e) {
|
|
e.printStackTrace();
|
|
} finally {
|
|
try {
|
|
Thread.sleep(2000L);
|
|
} catch(InterruptedException e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|