config file is loaded from resources

This commit is contained in:
in0finite 2019-07-21 19:52:16 +02:00
parent e97e36a9a4
commit 827aec1c9e
2 changed files with 2 additions and 2 deletions

View file

@ -155,7 +155,7 @@ namespace SanAndreasUnity.Utilities
_substitutions.Clear ();
_root = JObject.Parse (File.ReadAllText (FilePath));
_root = JObject.Parse (Resources.Load<TextAsset>("config").text);
if (File.Exists (UserFilePath))
{

View file

@ -27,7 +27,7 @@
- Chat
- Android: touch input is required ; set default fps to 25 ; add some predefined folders in file browser ; HUD must run before other UI scripts ; load config from resources ;
- Android: touch input is required ; set default fps to 25 ; add some predefined folders in file browser ; HUD must run before other UI scripts ; load config from resources ; when build is finished, don't try to copy Data folder ;
- Play sounds: horn ; empty weapon slot ; ped damage ; footsteps in run and sprint states ;