hedgewars/hwengine.pas
branchhedgeroid
changeset 6029 5073285b6599
parent 6023 a28be05b20bc
child 6224 42b256eca362
--- a/hedgewars/hwengine.pas	Mon Sep 26 01:16:15 2011 +0200
+++ b/hedgewars/hwengine.pas	Mon Sep 26 01:32:48 2011 +0200
@@ -267,14 +267,7 @@
 {$IFDEF HWLIBRARY}
     cBits:= 32;
     cTimerInterval:= 8;
-{$IFDEF ANDROID}
-    PathPrefix:= gameArgs[11];
-    cFullScreen:= true;
-{$ELSE}
-    PathPrefix:= 'Data';
-    cFullScreen:= false;
-{$ENDIF}
-    UserPathPrefix:= '.';
+    cFullScreen:= {$IFDEF MOBILE}true{$ELSE}false{$ENDIF};
     cShowFPS:= {$IFDEF DEBUGFILE}true{$ELSE}false{$ENDIF};
     val(gameArgs[0], ipcPort);
     val(gameArgs[1], cScreenWidth);
@@ -287,7 +280,8 @@
     isSoundEnabled:= gameArgs[6] = '1';
     isMusicEnabled:= gameArgs[7] = '1';
     cAltDamage:= gameArgs[8] = '1';
-    val(gameArgs[9], rotationQt);
+    PathPrefix:= gameArgs[9];
+    UserPathPrefix:= PathPrefix;
     recordFileName:= gameArgs[10];
     cStereoMode:= smNone;
 {$ENDIF}