hedgewars/uUtils.pas
branchhedgeroid
changeset 5932 5164d17b6374
parent 5661 45618bdce725
parent 5831 80f2a44becea
child 6444 eddc1e9bcd81
--- a/hedgewars/uUtils.pas	Fri Sep 16 17:36:05 2011 +0200
+++ b/hedgewars/uUtils.pas	Fri Sep 16 18:17:16 2011 +0200
@@ -342,20 +342,7 @@
     {$IFDEF ANDROID} Assign(f,pathPrefix + '/' + cLogfileBase + '.log'); {$ENDIF}
     Rewrite(f);
 {$ELSE}
-    if (ParamStr(1) <> '') and (ParamStr(2) <> '') then
-        if (ParamCount <> 3) and (ParamCount <> cDefaultParamNum) then
-        begin
-            i:= 0;
-            while(i < 7) do
-            begin
-                assign(f, ExtractFileDir(ParamStr(2)) + '/' + cLogfileBase + inttostr(i) + '.log');
-                rewrite(f);
-                if IOResult = 0 then break;
-                inc(i)
-            end;
-            if i = 7 then f:= stderr; // if everything fails, write to stderr
-        end
-        else
+    if (UserPathPrefix <> '') then
         begin
             i:= 0;
             while(i < 7) do