Editing SLB2
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
== | == SLB2 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]] | ||
Line 6: | Line 6: | ||
/* SLB2 structure is little endian */ | /* SLB2 structure is little endian */ | ||
struct | struct slb2_entry { | ||
uint32_t | uint32_t block_offset; | ||
uint32_t | uint32_t file_size; | ||
uint32_t | uint32_t alignment[2]; | ||
char | char file_name[32]; | ||
} __attribute__((packed)); | } __attribute__((packed)); | ||
struct | struct slb2_header { | ||
uint32_t magic; | uint32_t magic; | ||
uint32_t version; | uint32_t version; | ||
uint32_t flags; | uint32_t flags; | ||
uint32_t | uint32_t file_count; | ||
uint32_t | uint32_t block_count; | ||
uint32_t | uint32_t unk[3]; | ||
struct | struct slb2_entry entry_list[0]; | ||
} __attribute__((packed)); | } __attribute__((packed)); | ||
</source> | </source> | ||
Line 39: | Line 39: | ||
* [https://github.com/yifanlu/slb2tools slb2tools] (yifan lu) | * [https://github.com/yifanlu/slb2tools slb2tools] (yifan lu) | ||
{{Software}} | {{Software}} | ||
<noinclude>[[Category:Main]]</noinclude> | <noinclude>[[Category:Main]]</noinclude> |