[BUG 66] - Create '/Logs' folder if not exists
authorantonc27 <antonc27@mail.ru>
Tue, 03 May 2016 00:59:38 +0200
changeset 11788 0327d20fa4a1
parent 11785 947e2d53afc1
child 11789 e2de320aaf69
[bug #66] - Create '/Logs' folder if not exists
hedgewars/uUtils.pas
--- a/hedgewars/uUtils.pas	Sun May 01 14:32:47 2016 +0200
+++ b/hedgewars/uUtils.pas	Tue May 03 00:59:38 2016 +0200
@@ -586,6 +586,8 @@
 {$IFDEF USE_VIDEO_RECORDING}
     InitCriticalSection(logMutex);
 {$ENDIF}
+    if not pfsExists('/Logs') then
+        pfsMakeDir('/Logs');
     // if log is locked, write to the next one
     i:= 0;
     while(i < 7) do