diff options
author | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-08-20 22:44:48 +0000 |
---|---|---|
committer | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-08-20 22:44:48 +0000 |
commit | 1495d0dab6dd7dd702d043c305760b8600d4609f (patch) | |
tree | 81969c69164c3ff9823d693c63fa06a931dd910b | |
parent | 2488e27f943471e03ee41ffefd67afbafa6442d4 (diff) | |
download | usdx-1495d0dab6dd7dd702d043c305760b8600d4609f.tar.gz usdx-1495d0dab6dd7dd702d043c305760b8600d4609f.tar.xz usdx-1495d0dab6dd7dd702d043c305760b8600d4609f.zip |
DebugWriteln change to Log.LogError + minor format adjustments.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1280 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/Classes/UPlatformMacOSX.pas | 7 |
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 |