STAR Files: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
STAR files store packages on the [[PSX Update Disc]] 2.11. It is a fairly simple archive format that is neither compressed nor encrypted. Each entry consists of the following segments: | STAR files (file extension .star) store packages on the [[PSX Update Disc]] 2.11. It is a fairly simple archive format that is neither compressed nor encrypted. Each entry consists of the following segments: | ||
* a header (size: 0x8 bytes) | * a header (size: 0x8 bytes) | ||
* a file name (size specified in header) | * a file name (size specified in header) | ||
Line 6: | Line 6: | ||
* sha-1 hash of file data (size: 0x14 bytes) | * sha-1 hash of file data (size: 0x14 bytes) | ||
Subfolders are handled by simply writing out the full path in the file name, with subfolders being separated with /. | Subfolders are handled by simply writing out the full path in the file name, with subfolders being separated with / (0x2F). | ||
Unpacking is possible by using [https://github.com/Brawl345/stargazer Stargazer]. | |||
== Header structure == | == Header structure == | ||
Line 25: | Line 27: | ||
| 0x2 | | 0x2 | ||
| 4 | | 4 | ||
| 32 bit file data size (without file name or hash) | | 32 bit file data size in byte (without file name or hash), max size per file is thus 4 GBytes minus 1 Byte | ||
|- | |- | ||
| 0x6 | | 0x6 | ||
| 1 | | 1 | ||
| Size of file name | | Size of file name in bytes, limited to 247 by the total size of header+name also being stored in a single byte | ||
|- | |- | ||
| 0x7 | | 0x7 |
Latest revision as of 13:27, 3 July 2022
Overview[edit | edit source]
STAR files (file extension .star) store packages on the PSX Update Disc 2.11. It is a fairly simple archive format that is neither compressed nor encrypted. Each entry consists of the following segments:
- a header (size: 0x8 bytes)
- a file name (size specified in header)
- the actual file data (size specified in header)
- sha-1 hash of file data (size: 0x14 bytes)
Subfolders are handled by simply writing out the full path in the file name, with subfolders being separated with / (0x2F).
Unpacking is possible by using Stargazer.
Header structure[edit | edit source]
Start | Length | Description |
---|---|---|
0x0 | 1 | Size of header + file name |
0x1 | 1 | Padding (always 0x00) |
0x2 | 4 | 32 bit file data size in byte (without file name or hash), max size per file is thus 4 GBytes minus 1 Byte |
0x6 | 1 | Size of file name in bytes, limited to 247 by the total size of header+name also being stored in a single byte |
0x7 | 1 | Padding (always 0x00) |