private void LoadTextures() { var textures = new M2Texture[Header.nTextures]; mFile.Position = Header.ofsTextures; mFile.Read(textures); foreach (var tex in textures) { mFile.Position = tex.ofsName; byte[] data = mFile.Read(tex.lenName); Textures.Add(Encoding.UTF8.GetString(data)); } }
private void LoadTextures() { var textures = new M2Texture[Header.nTextures]; mFile.Position = Header.ofsTextures; mFile.Read(textures); foreach (var tex in textures) { mFile.Position = tex.ofsName; byte[] data = mFile.Read(tex.lenName); Textures.Add(Encoding.UTF8.GetString(data)); } }