Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ HasFile()

bool Terraria.IO.ResourcePack.HasFile ( string fileName)
inlineprivate

Definition at line 157 of file ResourcePack.cs.

158 {
159 if (!IsCompressed)
160 {
162 }
163 return _zipFile.ContainsEntry(fileName);
164 }
static bool Exists([NotNullWhen(true)] string? path)
Definition File.cs:97
static string Combine(string path1, string path2)
Definition Path.cs:304
readonly string FullPath
readonly ZipFile _zipFile
readonly bool IsCompressed

References Terraria.IO.ResourcePack._zipFile, System.IO.Path.Combine(), System.IO.File.Exists(), Terraria.IO.ResourcePack.FullPath, and Terraria.IO.ResourcePack.IsCompressed.

Referenced by Terraria.IO.ResourcePack.CreateIcon(), and Terraria.IO.ResourcePack.LoadManifest().