예제 #1
0
        public SCEEditor(X360IO IO)
        {
            InitializeComponent();
            Header = new SCEHeader();
            Header.Load(IO);
            lblHdrVersion.Text = string.Format("Header Version: 0x{0:X2}", Header.Version);
            lblFileType.Text   = string.Format("File Type: 0x{0:X2} ({1})", Header.FileType,
                                               SCEHeader.FileTypes[Header.FileType]);
            lblFlags.Text = string.Format("Flags: 0x{0:X4}", Header.Flags);
            if (Header.IsContentEncrypted)
            {
                lblFlags.Text += " (ENCRYPTED)";
            }
            else
            {
                lblFlags.Text += " (DECRYPTED)";
            }
            lblHdrSize.Text = string.Format("Header Size: 0x{0:X2}", Header.HeaderSize);
            lblUnk1.Text    = string.Format("Unknown 1: 0x{0:X2}", Header.Unknown1);
            lblUnk2.Text    = string.Format("Unknown 2: 0x{0:X2}", Header.Unknown2);
            if (Header.FileType == 1 && !Header.IsContentEncrypted)
            {
                cmdUnfself.Enabled = true;
            }

            /*lblImgVersion.Text = string.Format("Image Version: {0:X2}", Package.ImageVersion);
             * lblFileCount.Text = string.Format("File Count: {0}", Package.FileCount);
             * lblHeaderSize.Text = string.Format("Header Size: {0:X2}", Package.HeaderSize);
             * lblDataSize.Text = string.Format("Data Size: {0:X2}", Package.DataSize);
             * txtHeaderHash.Text = Program.BytesToHexString(Package.HeaderHash);
             * txtPadding.Text = Program.BytesToHexString(Package.Padding);*/

            tsmiExtractAll.Enabled = true;
        }
예제 #2
0
        public SCEEditor(X360IO IO)
        {
            InitializeComponent();
            Header = new SCEHeader();
            Header.Load(IO);
            lblHdrVersion.Text = string.Format("Header Version: 0x{0:X2}", Header.Version);
            lblFileType.Text = string.Format("File Type: 0x{0:X2} ({1})", Header.FileType,
                                               SCEHeader.FileTypes[Header.FileType]);
            lblFlags.Text = string.Format("Flags: 0x{0:X4}", Header.Flags);
            if (Header.IsContentEncrypted)
                lblFlags.Text += " (ENCRYPTED)";
            else
                lblFlags.Text += " (DECRYPTED)";
            lblHdrSize.Text = string.Format("Header Size: 0x{0:X2}", Header.HeaderSize);
            lblUnk1.Text = string.Format("Unknown 1: 0x{0:X2}", Header.Unknown1);
            lblUnk2.Text = string.Format("Unknown 2: 0x{0:X2}", Header.Unknown2);
            if (Header.FileType == 1 && !Header.IsContentEncrypted)
                cmdUnfself.Enabled = true;
            /*lblImgVersion.Text = string.Format("Image Version: {0:X2}", Package.ImageVersion);
            lblFileCount.Text = string.Format("File Count: {0}", Package.FileCount);
            lblHeaderSize.Text = string.Format("Header Size: {0:X2}", Package.HeaderSize);
            lblDataSize.Text = string.Format("Data Size: {0:X2}", Package.DataSize);
            txtHeaderHash.Text = Program.BytesToHexString(Package.HeaderHash);
            txtPadding.Text = Program.BytesToHexString(Package.Padding);*/

            tsmiExtractAll.Enabled = true;
        }
예제 #3
0
 public byte[] SignatureData; // not sure what it is, 0x260 bytes though
 public SCEPKGHeader(SCEHeader main)
 {
     mainHeader = main;
 }
예제 #4
0
 public SCEELFHeader(SCEHeader main)
 {
     mainHeader = main;
 }
예제 #5
0
 public SCEPKGHeader(SCEHeader main)
 {
     mainHeader = main;
 }
예제 #6
0
 public SCEELFHeader(SCEHeader main)
 {
     mainHeader = main;
 }