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
--- 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);