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

◆ GetContentSource()

IContentSource Terraria.IO.ResourcePack.GetContentSource ( )
inline

Definition at line 94 of file ResourcePack.cs.

95 {
96 //IL_0039: Unknown result type (might be due to invalid IL or missing references)
97 //IL_0043: Expected O, but got Unknown
98 //IL_001c: Unknown result type (might be due to invalid IL or missing references)
99 //IL_0026: Expected O, but got Unknown
100 if (_needsReload)
101 {
102 if (IsCompressed)
103 {
105 }
106 else
107 {
109 }
110 _contentSource.ContentValidator = (IContentValidator)(object)VanillaContentValidator.Instance;
111 _needsReload = false;
112 }
113 return _contentSource;
114 }
static string Combine(string path1, string path2)
Definition Path.cs:304
readonly string FullPath
IContentSource _contentSource
readonly bool IsCompressed

References Terraria.IO.ResourcePack._contentSource, Terraria.IO.ResourcePack._needsReload, System.IO.Path.Combine(), Terraria.IO.ResourcePack.FullPath, Terraria.GameContent.VanillaContentValidator.Instance, and Terraria.IO.ResourcePack.IsCompressed.

Referenced by Terraria.IO.ResourcePackContentValidator.ValidateResourePack().