Пример #1
0
        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
        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;
 }