public static void LoadTexture(String name, ref Texture texture, TextureType type) { //Game.PrintChat(name.ToLower()); if ((type == TextureType.Default) && MyResources.ContainsKey(name.ToLower())) { try { texture = Texture.FromMemory(Drawing.Direct3DDevice, MyResources[name.ToLower()]); } catch (Exception ex) { Console.WriteLine("SAwarness: Couldn't load texture: " + name + "\n Ex: " + ex); } } }