Added an argument to Game(PChar) which provides a path to the data folder. This allows the user/java side to change from internal sdcard to sdcard hedgeroid
authorXeli
Tue, 28 Jun 2011 17:51:07 +0200
branchhedgeroid
changeset 5365 326c7db9e410
parent 5363 7f7800581012
child 5367 c7b8da094474
Added an argument to Game(PChar) which provides a path to the data folder. This allows the user/java side to change from internal sdcard to sdcard
hedgewars/hwengine.pas
--- a/hedgewars/hwengine.pas	Fri Jun 24 13:37:43 2011 +0200
+++ b/hedgewars/hwengine.pas	Tue Jun 28 17:51:07 2011 +0200
@@ -215,9 +215,14 @@
 begin
 {$IFDEF HWLIBRARY}
     cBits:= 32;
+    cTimerInterval:= 8;
+{$IFDEF ANDROID}
+    PathPrefix:= gameArgs[11];
+    cFullScreen:= true;
+{$ELSE}
+    PathPrefix:= 'Data';
     cFullScreen:= false;
-    cTimerInterval:= 8;
-    PathPrefix:= '/sdcard/Data';
+{$ENDIF}
     UserPathPrefix:= '.';
     cShowFPS:= {$IFDEF DEBUGFILE}true{$ELSE}false{$ENDIF};
     val(gameArgs[0], ipcPort);