PRX File Format: Difference between revisions

From PSP Developer wiki
Jump to navigation Jump to search
Line 9: Line 9:
| 0x0 || 4 || Magic || ~PSP
| 0x0 || 4 || Magic || ~PSP
|-
|-
| 0x6 || 2 || Compression Type || 0x300-Plain, 0x200-KL4E, 0x100-2RLZ, 0x000-GZIP Little endian u16 & 0xFF
| 0x6 || 2 || Compression Type || 0x300-Plain, 0x200-KL4E, 0x100-2RLZ, 0x000-GZIP Little endian u16 & 0xF00
|-
|-
| 0x28 || 4 || Plaintext Size (ELF) || Little endian u32
| 0x28 || 4 || Plaintext Size (ELF) || Little endian u32

Revision as of 14:10, 26 May 2020

Structure of the PRX Goes as follows

PRX File Format Structure

Offset Size Description Notes
0x0 4 Magic ~PSP
0x6 2 Compression Type 0x300-Plain, 0x200-KL4E, 0x100-2RLZ, 0x000-GZIP Little endian u16 & 0xF00
0x28 4 Plaintext Size (ELF) Little endian u32
0x2C 4 Total Size Little endian u32
0x34 4 Filetype if ((s32)(header+0x34) >=0) (Determines if user (positive) or kernel (negative) )
0xD0 4 Key Tag Type Little endian u32
0x7C 1 Encryption Type 2 - supported by multiloader / 0 - internal / 1 - ???