SLB2: Difference between revisions

From PS4 Developer wiki
Jump to navigation Jump to search
No edit summary
m (CelesteBlue moved page SLB2 structure to SLB2)
(No difference)

Revision as of 01:01, 7 June 2020

SLB2 structure

PS4 SLB PUP container format - SKFU
/* SLB2 structure is little endian */
 
struct slb2_entry {
	uint32_t block_offset;
	uint32_t file_size;
	uint32_t alignment[2];
	char     file_name[32];
} __attribute__((packed));
 
struct slb2_header {
	uint32_t magic;
	uint32_t version;
	uint32_t flags;
	uint32_t file_count;
	uint32_t block_count;
	uint32_t unk[3];
	struct slb2_entry entry_list[0];
} __attribute__((packed));

Unpacking