DEADSOFTWARE

Code improvements
[cavedroid.git] / desktop / src / ru / deadsoftware / cavecraft / desktop / DesktopLauncher.java
index 470584b238ee39b21f7cb10faab628e97fb4c6e4..492adecc51f8e89f87865510592a904d82b426c6 100644 (file)
@@ -15,10 +15,10 @@ public class DesktopLauncher {
                config.width = 960;
                config.height = 540;
 
-                boolean touch = false;
-                for (int i=0; i<arg.length; i++) {
-                    if (arg[i].equals("--touch")) touch = true;
-                }
-               new LwjglApplication(new CaveGame(touch), 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);
        }
 }