put back GLUnit in the uses clause, indentation fix, path fix hedgeroid
authorXeli
Fri, 24 Jun 2011 13:22:17 +0200
branchhedgeroid
changeset 5359 86b76c93a612
parent 5356 bf058f0a77d6
child 5361 0d73a5e589b5
put back GLUnit in the uses clause, indentation fix, path fix
hedgewars/hwengine.pas
--- a/hedgewars/hwengine.pas	Fri Jun 24 13:21:02 2011 +0200
+++ b/hedgewars/hwengine.pas	Fri Jun 24 13:22:17 2011 +0200
@@ -31,7 +31,7 @@
 
 uses SDLh, uMisc, uConsole, uGame, uConsts, uLand, uAmmos, uVisualGears, uGears, uStore, uWorld, uKeys, uSound,
      uScript, uTeams, uStats, uIO, uLocale, uChat, uAI, uAIMisc, uRandom, uLandTexture, uCollisions,
-     sysutils, uTypes, uVariables, uCommands, uUtils, uCaptions, uDebug, uCommandHandlers, uLandPainted;
+     sysutils, uTypes, uVariables, uCommands, uUtils, uCaptions, uDebug, uCommandHandlers, uLandPainted {$IFDEF ANDROID}, GLUnit {$ENDIF};
 
 {$IFDEF HWLIBRARY}
 procedure initEverything(complete:boolean);
@@ -217,7 +217,7 @@
     cBits:= 32;
     cFullScreen:= false;
     cTimerInterval:= 8;
-    PathPrefix:= 'Data';
+    PathPrefix:= '/sdcard/Data';
     UserPathPrefix:= '.';
     cShowFPS:= {$IFDEF DEBUGFILE}true{$ELSE}false{$ENDIF};
     val(gameArgs[0], ipcPort);
@@ -345,9 +345,9 @@
 
     if complete then
     begin
-        {$IFDEF ANDROID}
+{$IFDEF ANDROID}
 	GLUnit.init;
-	{$ENDIF}
+{$ENDIF}
 	uAI.initModule;
         //uAIActions does not need initialization
         //uAIAmmoTests does not need initialization