public override void Read(BinaryReader file, uint size) { base.Read(file, size); unk.Read(file, 4); MipsCount.Read(file, 4); // Imported and Cooked xbms have a different file structure. // Imported xbms can be identified by their Sourcedata being not null var SourceData = this.GetVariableByName("sourceData"); if (SourceData != null) { //dbg var ResidentMipIndex = this.GetVariableByName("residentMipIndex"); if (ResidentMipIndex != null) { throw new NotImplementedException(); } for (int i = 0; i < MipsCount.val; i++) { var mipdata = new SMipData(cr2w); mipdata.Read(file, 16); Mipdata.AddVariable(mipdata); var img = new CByteArray(cr2w); //img.SetParent(this); img.Read(file, 0); Mips.AddVariable(img); } unk2.Read(file, 4); } else { //if (ResidentMipIndex == null) //throw new NotImplementedException(); Mipdata.Read(file, size, (int)MipsCount.val); ResidentmipSize.Read(file, 4); unk2.Read(file, 4); //Residentmip.SetParent(this); Residentmip.Read(file, ResidentmipSize.val); } //if (MipsCount.val > 0) // mips.Read(file, size, (int)MipsCount.val); //else // mips.Read(file, size, 1); //ResidentmipSize.Read(file, 4); //unk2.Read(file, 4); //Residentmip.Bytes = file.ReadBytes((int)ResidentmipSize.val); }
public override void Read(BinaryReader file, uint size) { base.Read(file, size); swfResource.Read(file, size); unk1.Read(file, 0); //dbg if (unk1.val > 0) { throw new NotImplementedException(); } }
public override void Read(BinaryReader file, uint size) { base.Read(file, size); swfResource.Read(file, size); }
public override void Read(BinaryReader file, uint size) { base.Read(file, size); explfile.Read(file, 0); }