mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 20:13:02 +00:00
...
This commit is contained in:
parent
3f37b3913e
commit
0b7492d6f8
1 changed files with 7 additions and 25 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue