Changeset 20 for trunk/Directories.pas


Ignore:
Timestamp:
Jan 8, 2017, 12:23:55 PM (7 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Directories.pas

    r19 r20  
    2828function LocalizedFilePath(path: string): string;
    2929begin
    30   result := DataDir + 'Localization\' + path;
     30  result := DataDir + 'Localization' + DirectorySeparator + path;
    3131  if not FileExists(result) then
    3232    result := HomeDir + path
     
    5252
    5353  // Copy appdata if not done yet
    54   if FindFirst(HomeDir + 'AppData\Saved\*.cevo', $21, src) = 0 then
     54  if FindFirst(HomeDir + 'AppData' + DirectorySeparator + 'Saved' + DirectorySeparator + '*.cevo', $21, src) = 0 then
    5555    repeat
    56       if (FindFirst(DataDir + 'Saved\' + src.Name, $21, dst) <> 0) or
     56      if (FindFirst(DataDir + 'Saved' + DirectorySeparator + src.Name, $21, dst) <> 0) or
    5757        (dst.Time < src.Time) then
    58         CopyFile(PChar(HomeDir + 'AppData\Saved\' + src.Name),
    59           PChar(DataDir + 'Saved\' + src.Name), false);
     58        CopyFile(PChar(HomeDir + 'AppData' + DirectorySeparator + 'Saved' + DirectorySeparator + src.Name),
     59          PChar(DataDir + 'Saved' + DirectorySeparator + src.Name), false);
    6060    until FindNext(src) <> 0;
    6161end;
Note: See TracChangeset for help on using the changeset viewer.