aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code
diff options
context:
space:
mode:
Diffstat (limited to 'Game/Code')
-rw-r--r--Game/Code/Classes/UPlatformMacOSX.pas7
1 files changed, 4 insertions, 3 deletions
diff --git a/Game/Code/Classes/UPlatformMacOSX.pas b/Game/Code/Classes/UPlatformMacOSX.pas
index a774186f..68acae25 100644
--- a/Game/Code/Classes/UPlatformMacOSX.pas
+++ b/Game/Code/Classes/UPlatformMacOSX.pas
@@ -10,6 +10,7 @@ interface
uses
Classes,
+ ULog,
UPlatform;
type
@@ -193,16 +194,16 @@ begin
until (FindNext(SearchInfo) <> 0);
end;
FindClose(SearchInfo);
- DirectoryIsFinished := succ(DirectoryIsFinished);
+ inc(DirectoryIsFinished);
until (DirectoryIsFinished = DirectoryList.Count);
// create missing folders
if not ForceDirectories(UserPathName) then
- DebugWriteln('Error: Failed to create the folder: ', UserPathName);
+ Log.LogError('Error: Failed to create the folder: ', UserPathName);
for counter := 0 to DirectoryList.Count-1 do
if not ForceDirectories(UserPathName + '/' + DirectoryList[counter]) then
- DebugWriteln('Error: Failed to create the folder: ', UserPathName + '/' + DirectoryList[counter]);
+ Log.LogError('Error: Failed to create the folder: ', UserPathName + '/' + DirectoryList[counter]);
DirectoryList.Free();
// copy missing files