コード例 #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);
            }
        }
コード例 #2
0
 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
ファイル: FileBuffer.cs プロジェクト: Zakurab/GTAVTools
 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;
 }