hedgewars/uUtils.pas
changeset 10605 df7a73db2c43
parent 10603 bda5c7caf396
child 10606 8e95911cb86b
child 10690 c3b73dc33294
equal deleted inserted replaced
10604:f2f9928ea2e7 10605:df7a73db2c43
   557         i:= 0;
   557         i:= 0;
   558         while(i < 7) do
   558         while(i < 7) do
   559             begin
   559             begin
   560             assign(logFile, shortstring(UserPathPrefix) + '/Logs/' + logfileBase + inttostr(i) + '.log');
   560             assign(logFile, shortstring(UserPathPrefix) + '/Logs/' + logfileBase + inttostr(i) + '.log');
   561             Rewrite(logFile);
   561             Rewrite(logFile);
   562             rwfailed:= (IOResult() <> 0);
   562             // note: IOResult is a function in pascal and a variable in pas2c
       
   563             rwfailed:= (IOResult <> 0);
   563             if (not rwfailed) then
   564             if (not rwfailed) then
   564                 break;
   565                 break;
   565             inc(i)
   566             inc(i)
   566             end;
   567             end;
   567         end;
   568         end;