示例#1
0
文件: GTA5.cs 项目: Zakurab/GTAVTools
        public GTANETRPF7(RPF7File rpf = null)
        {
            InitializeComponent();

            filesList.Columns.Add("Name", 300);
            filesList.Columns.Add("Size", 100);
            filesList.Columns.Add("Resource Type", 100);

            Comparison<TreeNode> treeSorter = (x, y) => x.Name.CompareTo(y.Name);
            filesTree.TreeViewNodeSorter = new NodeSorter();

            if (rpf != null)
            {
                this.LoadRPF(rpf);
            }
        }
 public CompressedFileStreamCreator(RPF7File file, long offset, int compressedSize, int uncompressedSize, bool encrypted = true)
     : base(file, offset, compressedSize)
 {
     this.UncompressedSize = uncompressedSize;
     this.Encrypted        = encrypted;
 }
示例#3
0
 public FileStreamCreator(RPF7File file, long offset, int size)
 {
     this.File = file;
     this.Offset = offset;
     this.Size = size;
 }
示例#4
0
 public FileBuffer(RPF7File file, long offset, int size)
 {
     this.File = file;
     this.Offset = offset;
     this.Size = size;
 }
示例#5
0
 // Ignore first 0x10, it is supposed to be the header, but is it junk since we got all the information that we need about the resource from the flags?
 public ResourceStreamCreator(RPF7File file, long offset, int compressedSize, uint systemFlag, uint graphicsFlag)
     : base(file, offset + 0x10, compressedSize - 0x10, (int)(ResourceEntry.GetSizeFromSystemFlag(systemFlag) + ResourceEntry.GetSizeFromGraphicsFlag(graphicsFlag)), ResourceEntry.IsResourceEncrypted(ResourceEntry.GetResourceTypeFromFlags(systemFlag, graphicsFlag)))
 {
 }
示例#6
0
 public FileStreamCreator(RPF7File file, long offset, int size)
 {
     this.File   = file;
     this.Offset = offset;
     this.Size   = size;
 }
示例#7
0
 // Ignore first 0x10, it is supposed to be the header, but is it junk since we got all the information that we need about the resource from the flags?
 public ResourceFileBuffer(RPF7File file, long offset, int compressedSize, uint systemFlag, uint graphicsFlag)
     : base(file, offset + 0x10, compressedSize - 0x10, (int)(ResourceEntry.GetSizeFromSystemFlag(systemFlag) + ResourceEntry.GetSizeFromGraphicsFlag(graphicsFlag)), ResourceEntry.IsResourceEncrypted(ResourceEntry.GetResourceTypeFromFlags(systemFlag, graphicsFlag)))
 {
 }
示例#8
0
文件: GTA5.cs 项目: Zakurab/GTAVTools
        private void LoadRPF(RPF7File rpf)
        {
            this.File = rpf;

            exportAllButton.Enabled = true;
            UpdateExportSelectButton();
            filesTree.Nodes.Clear();
            filesList.Items.Clear();

            TreeNode root = GetTreeNodes(this.File.Root as DirectoryEntry);
            root.Text = rpf.Filename;
            filesTree.Nodes.Add(root);

            filesTree.SelectedNode = root;
            UpdateExportSelectButton();
            UpdateFilesList();
        }
示例#9
0
 public CompressedFileBuffer(RPF7File file, long offset, int compressedSize, int uncompressedSize, bool encrypted = true)
     : base(file, offset, compressedSize)
 {
     this.UncompressedSize = uncompressedSize;
     this.Encrypted = encrypted;
 }
示例#10
0
 public FileBuffer(RPF7File file, long offset, int size)
 {
     this.File   = file;
     this.Offset = offset;
     this.Size   = size;
 }