Changeset 165 for tags/1.3.0/Target.pas


Ignore:
Timestamp:
Aug 20, 2024, 1:02:49 AM (3 months ago)
Author:
chronos
Message:

Merged revision(s) 164 from trunk:

  • Fixed: Put compiled files into application data directory if source is in read only directory.
Location:
tags/1.3.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tags/1.3.0

    • Property svn:mergeinfo changed
      /trunkmerged: 164
  • tags/1.3.0/Target.pas

    r162 r165  
    533533    CompiledDir + DirectorySeparator + Name + DirectorySeparator +
    534534    ExtractFileNameOnly(ProjectFileName) + SourceExtension;
     535  if not DirectoryIsWritable(ExtractFilePath(Result)) then
     536    Result := GetAppConfigDir(False) + CompiledDir + DirectorySeparator + Name +
     537      DirectorySeparator + ExtractFileNameOnly(ProjectFileName) + SourceExtension;;
    535538end;
    536539
     
    545548    CompiledDir + DirectorySeparator + Name + DirectorySeparator +
    546549    ExtractFileNameOnly(ProjectFileName) + CompiledExtension;
     550  if not DirectoryIsWritable(ExtractFilePath(Result)) then
     551    Result := GetAppConfigDir(False) + CompiledDir + DirectorySeparator + Name +
     552      DirectorySeparator + ExtractFileNameOnly(ProjectFileName) + CompiledExtension;
    547553end;
    548554
Note: See TracChangeset for help on using the changeset viewer.