Changes

Jump to navigation Jump to search
526 bytes removed ,  01:26, 4 July 2017
Migrated header version 6-8 into 9+ (now 6+)
Line 46: Line 46:  
         uint32 compressedSize;
 
         uint32 compressedSize;
 
         uint32 offset;
 
         uint32 offset;
         uint32[[Class IDs | classID]]; // indicates the type of the file
+
         uint32 [[Class IDs|classID]]; // indicates the type of the file
 
         uint64 flags;
 
         uint64 flags;
 
     }
 
     }
Line 78: Line 78:     
There is one special exception with .gbx files. If the specific class ID is 0x07031000 (Control::CControlText), 0x07001000 (Control::CControlBase) is used as input instead.
 
There is one special exception with .gbx files. If the specific class ID is 0x07031000 (Control::CControlText), 0x07001000 (Control::CControlBase) is used as input instead.
  −
===Header versions 6-8===
  −
byte magic[8]: "NadeoPak"
  −
uint32 version (6, 7, 8)
  −
if (version >= 6)
  −
{
  −
  uint256    ContentsChecksum;  // Checksum Sha256 of the pack contents starting at next byte
  −
  uint32    DecryptFlags;
  −
  if (version >= 7)
  −
  {
  −
    struct SAuthorInfo
  −
    {
  −
      uint32 version;
  −
      string Login;
  −
      string Nick;
  −
      string Zone;
  −
      string ExtraInfo;
  −
    }
  −
    string  Comment;
  −
    uint128  unused;
  −
    if (version >= 8)
  −
    {
  −
      string CreationBuildInfo;
  −
      string AuthorUrl;
  −
    }
  −
  }
  −
}
      
===Header versions 6+===
 
===Header versions 6+===
Line 117: Line 90:  
     if (version >= 7)
 
     if (version >= 7)
 
     {
 
     {
         SAuthorInfo AuthorInfo;  // version = 0, string login, string nick, string zone, string extra
+
         SAuthorInfo AuthorInfo;  // uint32 version = 0, string login, string nick, string zone, string extra
 
         if (version < 9)
 
         if (version < 9)
 
         {
 
         {
Line 195: Line 168:  
             uint32 CompressedSize;
 
             uint32 CompressedSize;
 
             uint32 Offset;
 
             uint32 Offset;
             uint32 ClassID;
+
             uint32 [[Class IDs|classID]];
 
             if version >= 17:
 
             if version >= 17:
 
               uint32 Size;
 
               uint32 Size;

Navigation menu