DEADSOFTWARE

Code improvements
[cavedroid.git] / desktop / src / ru / deadsoftware / cavecraft / desktop / DesktopLauncher.java
index 03ddd69ce5358abd94b7da26203e8775c4eff51d..492adecc51f8e89f87865510592a904d82b426c6 100644 (file)
@@ -14,6 +14,11 @@ public class DesktopLauncher {
                config.title = "CaveCraft";
                config.width = 960;
                config.height = 540;
-               new LwjglApplication(new CaveGame(), config);
+
+               boolean touch = false;
+               for (String anArg : arg) {
+                       if (anArg.equals("--touch")) touch = true;
+               }
+               new LwjglApplication(new CaveGame(System.getProperty("user.home") + "/.cavecraft", touch), config);
        }
 }