SLB2: Difference between revisions

From PS4 Developer wiki
Jump to navigation Jump to search
m (CelesteBlue moved page SLB2 structure to SLB2)
No edit summary
Line 1: Line 1:
== SLB2 structure ==
== Structure ==


[[File:PS4 SLB PUP container format - SKFU.png|thumb|PS4 SLB PUP container format - SKFU]]
[[File:PS4 SLB PUP container format - SKFU.png|thumb|PS4 SLB PUP container format - SKFU]]

Revision as of 01:02, 7 June 2020

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