Merge pull request #155 from mgschwan/main

Make VRServer config path variable
This commit is contained in:
Eiren Rain authored and GitHub committed 2022-04-12 01:57:10 +03:00
commit d0c3e0ae8d
1 file changed
+7 -1
+7 -1
View File
@@ -49,9 +49,15 @@ public class VRServer extends Thread {
private final List<Consumer<Tracker>> newTrackersConsumers = new FastList<>();
private final List<Runnable> onTick = new FastList<>();
private final List<? extends ShareableTracker> shareTrackers;
private String m_configPath;
public VRServer() {
this("vrconfig.yml");
}
public VRServer(String configPath) {
super("VRServer");
m_configPath = configPath;
loadConfig();
hmdTracker = new HMDTracker("HMD");
hmdTracker.position.set(0, 1.8f, 0); // Set starting position for easier debugging