aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes/UFiles.pas
diff options
context:
space:
mode:
Diffstat (limited to 'Game/Code/Classes/UFiles.pas')
-rw-r--r--Game/Code/Classes/UFiles.pas5
1 files changed, 5 insertions, 0 deletions
diff --git a/Game/Code/Classes/UFiles.pas b/Game/Code/Classes/UFiles.pas
index 242fe092..a8fa8076 100644
--- a/Game/Code/Classes/UFiles.pas
+++ b/Game/Code/Classes/UFiles.pas
@@ -41,6 +41,7 @@ var
PluginPath: string;
PlayListPath: string;
RecordingsPath: string;
+ SessionLogPath: string;
SongFile: TextFile; // all procedures in this unit operates on this file
FileLineNo: integer; //Line which is readed at Last, for error reporting
@@ -74,6 +75,7 @@ begin
PluginPath := GamePath + 'Plugins\';
PlaylistPath := GamePath + 'Playlists\';
RecordingsPath := GamePath + 'Recordings\';
+ SessionLogPath := GamePath + 'SessionLog\';
Writeable := true;
@@ -105,6 +107,9 @@ begin
If Writeable And (not DirectoryExists(RecordingsPath)) then
Writeable := ForceDirectories(RecordingsPath);
+ If Writeable And (not DirectoryExists(SessionLogPath)) then
+ Writeable := ForceDirectories(SessionLogPath);
+
if not Writeable then
Log.LogError('Error: Dir is Readonly');