Changeset 114 for trunk/Engine.pas
- Timestamp:
- Jan 14, 2025, 8:56:52 AM (8 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Engine.pas
r103 r114 1647 1647 {$IFDEF UNIX} 1648 1648 const 1649 UnixDataDir = '/usr/share/Tunneler'; 1650 UnixAudioDir = UnixDataDir + '/Audio'; 1649 AudioDirName = 'Audio'; 1650 UnixDataDir = '../share/Tunneler'; 1651 var 1652 NewDir: string; 1653 BaseDir: string; 1651 1654 {$ENDIF} 1652 1655 begin 1653 Result := GetCurrentDir + DirectorySeparator + 'Audio'; 1656 BaseDir := ExcludeTrailingPathDelimiter(ExtractFilePath(ParamStr(0))); 1657 Result := BaseDir + DirectorySeparator + AudioDirName; 1654 1658 {$IFDEF UNIX} 1655 if not DirectoryExists(Result) and DirectoryExists(UnixAudioDir) then begin 1656 Result := UnixAudioDir; 1657 Exit; 1659 NewDir := ExpandFileName(BaseDir + DirectorySeparator + UnixDataDir + 1660 DirectorySeparator + AudioDirName); 1661 if not DirectoryExists(Result) and DirectoryExists(NewDir) then begin 1662 Result := NewDir; 1658 1663 end; 1659 1664 {$ENDIF}
Note:
See TracChangeset
for help on using the changeset viewer.