mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 20:13:02 +00:00
'DontLoadTextures' can be configured
This commit is contained in:
parent
b1fdbf4256
commit
2a56f7f336
3 changed files with 7 additions and 3 deletions
|
@ -223,6 +223,8 @@ namespace SanAndreasUnity.Behaviours
|
|||
private static void StepLoadConfig ()
|
||||
{
|
||||
Config.Load ();
|
||||
|
||||
TextureDictionary.DontLoadTextures = Config.Get<bool>("dontLoadTextures");
|
||||
}
|
||||
|
||||
private static IEnumerator StepSelectGTAPath ()
|
||||
|
|
|
@ -224,7 +224,7 @@ namespace SanAndreasUnity.Importing.Conversion
|
|||
private static readonly Utilities.AsyncLoader<string, TextureDictionary> s_asyncLoader =
|
||||
new Utilities.AsyncLoader<string, TextureDictionary> (StringComparer.InvariantCultureIgnoreCase);
|
||||
|
||||
private static bool DontLoadTextures => true;
|
||||
public static bool DontLoadTextures { get; set; } = false;
|
||||
|
||||
private static Texture2D s_dummyTexture;
|
||||
private static Texture2D DummyTexture {
|
||||
|
@ -406,7 +406,7 @@ namespace SanAndreasUnity.Importing.Conversion
|
|||
{
|
||||
if (DontLoadTextures)
|
||||
return new LoadedTexture(DummyTexture, false);
|
||||
|
||||
|
||||
if (!_alpha.ContainsKey(name))
|
||||
{
|
||||
return ParentName != null ? Parent.GetAlpha(name) : null;
|
||||
|
|
|
@ -38,6 +38,8 @@
|
|||
"${game_dir}/data/animgrp.dat",
|
||||
"${data_dir}/auxanimgrp.dat"
|
||||
],
|
||||
"weapons_path": "${game_dir}/data/weapon.dat"
|
||||
"weapons_path": "${game_dir}/data/weapon.dat",
|
||||
|
||||
"dontLoadTextures": false,
|
||||
|
||||
}
|
Loading…
Reference in a new issue