terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ LoadTexture2D()

Microsoft.Xna.Framework.Graphics.Texture2D Microsoft.Xna.Framework.Content.ContentManager.LoadTexture2D ( string asset)
inlineprivate

Definition at line 293 of file ContentManager.cs.

294 {
295 string text = asset.ToLower();
296 int num = 92;
297 int num2 = 47;
298 string text2 = text.Replace((char)num, (char)num2);
300 bool flag = text2.Contains("images/misc/perlin");
301 bool flag2 = text2.Contains("images/misc/noise");
302 bool flag3 = text2.Contains("images/misc/ripples");
303 bool flag4 = asset.Contains("Fonts/");
304 bool flag5 = asset.StartsWith("Content/Fonts/Mouse_Text_");
305 bool flag6 = asset.StartsWith("Content/Fonts/Death_Text_");
306 bool flag7 = asset.Contains("SplashScreens/");
307 string text3 = asset + "_A";
308 string text4 = asset + "_P";
310 int size = sourceTexturesLoaded._size;
311 object syncRoot = sourceTexturesLoaded._syncRoot;
313 string text5 = asset + "_A";
315 return texture2D;
316 }
class f__AnonymousType0<< Count > j__TPar
Dictionary< string, Microsoft.Xna.Framework.Graphics.Texture2D > _loadedTextures
List< Microsoft.Xna.Framework.Graphics.Texture2D > _sourceTexturesLoaded

References Microsoft.Xna.Framework.Content.ContentManager._loadedTextures, System.Collections.Generic.List< T >._size, Microsoft.Xna.Framework.Content.ContentManager._sourceTexturesLoaded, j__TPar, and System.text.

Referenced by Microsoft.Xna.Framework.Content.ContentManager.Load< T1 >(), and Microsoft.Xna.Framework.Content.ContentManager.LoadSpriteFont().