/[MorrowindCustomClothingSlotCreator]/trunk/libTES3FileFormat/PluginHeader.cs
ViewVC logotype

Diff of /trunk/libTES3FileFormat/PluginHeader.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/libTES3FileFormat/PluginHeader.cs	2011/07/29 11:56:58	8
+++ trunk/libTES3FileFormat/PluginHeader.cs	2011/07/29 12:07:26	9
@@ -14,7 +14,7 @@
         int Unknown1 { get; }// 4 bytes
         byte[] CompanyName { get; } // 32 bytes
         byte[] PluginDescription { get; } // 256 bytes
-        long RecordCount { get; }// 4 bytes
+        int RecordCount { get; }// 4 bytes
     }
     public class PluginHeader : IPluginHeader
     {
@@ -62,15 +62,15 @@
 
             Debug.Assert(this.Size == 300, string.Format("Excepted: {0} found: {1}", 300, this.Size));
 
-            this.Version = br.ReadSingle();
+            this.Version = br.ReadSingle();// 4 bytes
             this.Log.WriteLine("\t\tVersion: " + this.Version);
-            this.Unknown1 = br.ReadInt32();
+            this.Unknown1 = br.ReadInt32(); // 4 bytes
             this.Log.WriteLine("\t\tUnknown1: " + this.Unknown1);
-            this.CompanyName = br.ReadBytes(32);
+            this.CompanyName = br.ReadBytes(0x20); // 32 bytes
             this.Log.WriteLine("\t\tCompanyName: " + this.CompanyName.ToAscii());
-            this.PluginDescription = br.ReadBytes(256);
+            this.PluginDescription = br.ReadBytes(0x100); // 256 bytes
             this.Log.WriteLine("\t\tPluginDescription: " + this.PluginDescription.ToAscii());
-            this.RecordCount = br.ReadInt64();
+            this.RecordCount = br.ReadInt32();// 4 bytes
             this.Log.WriteLine("\t\tRecordCount: " + this.RecordCount);
             this.Log.WriteLine();
             return true;
@@ -81,14 +81,14 @@
         private int _Unknown1;
         private byte[] _CompanyName;
         private byte[] _PluginDescription;
-        private long _RecordCount;
+        private int _RecordCount;
 
         //public int HeaderSize { get { return _HeaderSize; } private set { _HeaderSize = value; } } // 4bytes
         public float Version { get { return _Version; } private set { _Version = value; } } // 4 bytes
         public int Unknown1 { get { return _Unknown1; } private set { _Unknown1 = value; } } // 4 bytes
         public byte[] CompanyName { get { return _CompanyName; } private set { _CompanyName = value; } } // 32 bytes
         public byte[] PluginDescription { get { return _PluginDescription; } private set { _PluginDescription = value; } } // 256 bytes
-        public long RecordCount { get { return _RecordCount; } private set { _RecordCount = value; } }// 4 bytes
+        public int RecordCount { get { return _RecordCount; } private set { _RecordCount = value; } }// 4 bytes
         #endregion
 
 

 

  ViewVC Help
Powered by ViewVC 1.1.22