# HG changeset patch # User Xeli # Date 1309276267 -7200 # Node ID 326c7db9e410791e4da363fd9eb3751552b439ce # Parent 7f7800581012178447415388ad97b94e4cfa2b47 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 diff -r 7f7800581012 -r 326c7db9e410 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);