public void LoadFile(string fileName) { using (var br = new BinaryReader(File.OpenRead(fileName))) { Header = new VDriveHeader(br); Entries = new List <VDriveMibEntry>(); int i = 0; foreach (var item in Header.Offsets) { br.BaseStream.Seek(item, SeekOrigin.Begin); var tempEntry = new VDriveMibEntry(br); Entries.Add(tempEntry); tempEntry.InternalID = string.Format("{0}_({1})", tempEntry.Name, i); i++; } } }
public VDriveMSBFile(string fileName) { Header = new VDriveHeader(); Meshes = new List <VDriveMSBMeshEntry>(); ReadData(fileName); }
public VDriveMSBFile() { Header = new VDriveHeader(); Meshes = new List <VDriveMSBMeshEntry>(); }