This commit is contained in:
in0finite 2021-10-21 10:53:57 +02:00
parent 3f37b3913e
commit 0b7492d6f8

View file

@ -13,17 +13,11 @@ namespace SanAndreasUnity.Utilities
public const string const_game_dir = "game_dir"; public const string const_game_dir = "game_dir";
public static string FileName public static string FileName => "config.json";
{
get { return "config.json"; }
}
public static string UserFileName public static string UserFileName => "config.user.json";
{
get { return "config.user.json"; }
}
public static string ConfigFilesDirectoryPath public static string ConfigFilesDirectoryPath
{ {
get { get {
#if UNITY_EDITOR || UNITY_STANDALONE #if UNITY_EDITOR || UNITY_STANDALONE
@ -34,25 +28,13 @@ namespace SanAndreasUnity.Utilities
} }
} }
public static string FilePath public static string FilePath => Path.Combine(ConfigFilesDirectoryPath, FileName);
{
get { return Path.Combine(ConfigFilesDirectoryPath, FileName); }
}
public static string UserFilePath public static string UserFilePath => Path.Combine(ConfigFilesDirectoryPath, UserFileName);
{
get { return Path.Combine(ConfigFilesDirectoryPath, UserFileName); }
}
public static string GamePath public static string GamePath => GetPath (const_game_dir);
{
get
{
return GetPath (const_game_dir);
}
}
public static string DataPath public static string DataPath
{ {
get get
{ {