hedgewars/ArgParsers.inc
changeset 8167 96635d815141
parent 8150 6b30a4cd7c7c
child 8174 df02c2ad4a2c
--- a/hedgewars/ArgParsers.inc	Fri Nov 30 22:23:26 2012 -0500
+++ b/hedgewars/ArgParsers.inc	Fri Nov 30 23:04:10 2012 -0500
@@ -68,7 +68,7 @@
 begin
     WriteLn(stdout, 'Usage:');
     WriteLn(stdout, '');
-    WriteLn(stdout, '  hwengine <path to user hedgewars folder> <path to global data folder> <path to replay file> [options]');
+    WriteLn(stdout, '  hwengine [path to user hedgewars folder] <path to global data folder> <path to replay file> [options]');
     WriteLn(stdout, '');
     WriteLn(stdout, 'where [options] are any of the following:');
     WriteLn(stdout, ' --locale [path to language file]');
@@ -195,13 +195,9 @@
         end;
 end;
 
-procedure playReplayFileWithParameters();
-var paramIndex, tmpInt: LongInt;
-    wrongParameter: boolean;
+procedure playReplayFileWithParameters(paramIndex: LongInt);
+var wrongParameter: boolean;
 begin
-    UserPathPrefix:= ParamStr(1);
-    PathPrefix:= ParamStr(2);
-    recordFileName:= ParamStr(3);
     paramIndex:= 4;
     wrongParameter:= false;
     while (paramIndex <= ParamCount) do