Example #1
0
 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++;
         }
     }
 }
Example #2
0
 public VDriveMSBFile(string fileName)
 {
     Header = new VDriveHeader();
     Meshes = new List <VDriveMSBMeshEntry>();
     ReadData(fileName);
 }
Example #3
0
 public VDriveMSBFile()
 {
     Header = new VDriveHeader();
     Meshes = new List <VDriveMSBMeshEntry>();
 }