33 lines
649 B
ObjectPascal
33 lines
649 B
ObjectPascal
unit Resources;
|
|
|
|
interface
|
|
const
|
|
AssetsPath = 'assets\';
|
|
AssetChivalryMedievalWarfareMapListFileName = 'Chivalry.MedievalWarfare.MapList.ini';
|
|
|
|
|
|
UserDataPath = 'Chivalry Server Launcher\';
|
|
UserGamesFileName = 'Games.json';
|
|
|
|
|
|
function GetAssetPath(const AAsset: string): string;
|
|
function GetUserDataPath(const AAsset: string): string;
|
|
|
|
implementation
|
|
uses
|
|
X2UtApp;
|
|
|
|
|
|
function GetAssetPath(const AAsset: string): string;
|
|
begin
|
|
Result := App.Path + AssetsPath + AAsset;
|
|
end;
|
|
|
|
|
|
function GetUserDataPath(const AAsset: string): string;
|
|
begin
|
|
Result := App.UserPath + UserDataPath + AAsset;
|
|
end;
|
|
|
|
end.
|