@@ -1284,7 +1284,7 @@ function GetLibDir: String;
12841284 Result := GetAppDir;
12851285 { $ENDIF}
12861286 { $IFDEF DARWIN}
1287- Result := GetAppDir + ' ..' + DirectorySeparator + ' Frameworks' + DirectorySeparator ;
1287+ Result := GetAppDir + ' ..' + PathDelim + ' Frameworks' + PathDelim ;
12881288 { $ENDIF}
12891289 { $IFDEF LINUX}
12901290 Result := ' ' ;
@@ -1301,15 +1301,15 @@ function GetPluginDir: String;
13011301 // macOS: use the Frameworks directory, where all other libs reside
13021302 Result := GetLibDir;
13031303 { $IFDEF WINDOWS}
1304- Result := Result + ' plugins' + DirectorySeparator ;
1304+ Result := Result + ' plugins' + PathDelim ;
13051305 { $ENDIF}
13061306end ;
13071307
13081308function GetResourcesDir : String;
13091309begin
13101310 Result := GetAppDir;
13111311 { $IFDEF DARWIN}
1312- Result := GetAppDir + ' ..' + DirectorySeparator + ' Resources' + DirectorySeparator ;
1312+ Result := GetAppDir + ' ..' + PathDelim + ' Resources' + PathDelim ;
13131313 { $ENDIF}
13141314 { $IFDEF FREEBSD}
13151315 Result := ' /usr/local/share/heidisql/' ;
@@ -3580,7 +3580,7 @@ constructor TAppSettings.Create;
35803580 InitSetting(asIgnoreDatabasePattern, ' IgnoreDatabasePattern' , 0 , False, ' ' , True);
35813581 InitSetting(asLogFileDdl, ' LogFileDdl' , 0 , False, ' ' , True);
35823582 InitSetting(asLogFileDml, ' LogFileDml' , 0 , False, ' ' , True);
3583- InitSetting(asLogFilePath, ' LogFilePath' , 0 , False, DirnameUserAppData + ' Logs' +DirectorySeparator +' %session' +DirectorySeparator +' %db' +DirectorySeparator +' %y%m%d.sql' , True);
3583+ InitSetting(asLogFilePath, ' LogFilePath' , 0 , False, DirnameUserAppData + ' Logs' +PathDelim +' %session' +PathDelim +' %db' +PathDelim +' %y%m%d.sql' , True);
35843584 if Screen.Fonts.IndexOf(' Consolas' ) > -1 then
35853585 InitSetting(asFontName, ' FontName' , 0 , False, ' Consolas' )
35863586 else
@@ -3596,7 +3596,7 @@ constructor TAppSettings.Create;
35963596 InitSetting(asHightlightSameTextBackground, ' HightlightSameTextBackground' , GetThemeColor(NoteLineBackground));
35973597 InitSetting(asLogsqlnum, ' logsqlnum' , 300 );
35983598 InitSetting(asLogsqlwidth, ' logsqlwidth' , 2000 );
3599- InitSetting(asSessionLogsDirectory, ' SessionLogsDirectory' , 0 , False, DirnameUserAppData + ' Sessionlogs' + DirectorySeparator );
3599+ InitSetting(asSessionLogsDirectory, ' SessionLogsDirectory' , 0 , False, DirnameUserAppData + ' Sessionlogs' + PathDelim );
36003600 InitSetting(asLogHorizontalScrollbar, ' LogHorizontalScrollbar' , 0 , False);
36013601 InitSetting(asSQLColActiveLine, ' SQLColActiveLine' , 0 , False, ' clNone' );
36023602 InitSetting(asSQLColMatchingBraceForeground, ' SQLColMatchingBraceForeground' , 0 , False, ' clBlack' );
@@ -3795,7 +3795,7 @@ constructor TAppSettings.Create;
37953795 InitSetting(asDisplayReverseForeignKeys, ' DisplayReverseForeignKeys' , 0 , False);
37963796 InitSetting(asGenerateDataNumRows, ' GenerateDataNumRows' , 1000 );
37973797 InitSetting(asGenerateDataNullAmount, ' GenerateDataNullAmount' , 10 );
3798- InitSetting(asCustomSnippetsDirectory, ' CustomSnippetsDirectory' , 0 , False, DirnameUserDocuments + ' Snippets' + DirectorySeparator );
3798+ InitSetting(asCustomSnippetsDirectory, ' CustomSnippetsDirectory' , 0 , False, DirnameUserDocuments + ' Snippets' + PathDelim );
37993799 InitSetting(asPromptSaveFileOnTabClose, ' PromptSaveFileOnTabClose' , 0 , True);
38003800 // Restore tabs feature crashes often on old XP systems, see https://www.heidisql.com/forum.php?t=34044
38013801 InitSetting(asRestoreTabs, ' RestoreTabs' , 0 , True);
@@ -4448,7 +4448,7 @@ function TAppSettings.DirnameSnippets: String;
44484448function TAppSettings.DirnameBackups : String;
44494449begin
44504450 // Create backup folder if it does not exist and return it
4451- Result := DirnameUserAppData + ' Backups' + DirectorySeparator ;
4451+ Result := DirnameUserAppData + ' Backups' + PathDelim ;
44524452 if not DirectoryExists(Result) then begin
44534453 ForceDirectories(Result);
44544454 end ;
@@ -4457,7 +4457,7 @@ function TAppSettings.DirnameBackups: String;
44574457
44584458function TAppSettings.DirnameHighlighters : string;
44594459begin
4460- Result := DirnameUserAppData + ' Highlighters' + DirectorySeparator ;
4460+ Result := DirnameUserAppData + ' Highlighters' + PathDelim ;
44614461 if not DirectoryExists(Result) then begin
44624462 ForceDirectories(Result);
44634463 end ;
0 commit comments