Editing Talk:PlayStation archive (PSARC)

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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:


==PSARC structure notes==
Debian psarc Kplugin structure. From Manuel Stahl (thymythos) @ http://opendesktop.org/content/show.php/PSARC+file+header?content=162745
<?xml version="1.0" encoding="UTF-8"?>
<data>
  <struct name="header">
    <primitive name="magic" type="UInt32" />
    <primitive name="version" type="UInt32" />
    <primitive name="compression" type="UInt32" />
    <primitive name="TOC length" type="UInt32" />
    <primitive name="TOC entry size" type="UInt32" />
    <primitive name="num_entries" type="UInt32" />
    <primitive name="max block size" type="UInt32" />
    <primitive name="archive flags" type="UInt32" />
    <array name="TOC" length="num_entries">
      <struct name="entry">
        <array name="MD5" length="16"><primitive type="UInt8"/></array>
        <primitive name="zIndex" type="UInt32" />
        <bitfield name="length" width="40" type="unsigned" />
        <bitfield name="offset" width="40" type="unsigned" />
      </struct>
    </array>
    <array name="block sizes" length="num_entries">
      <bitfield name="size" width="16" type="unsigned" /><!-- only valid for "max block size" == 2^16 -->
    </array>
  </struct>
</data>
PSARC header example:
'''Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F'''
00000000  50 53 41 52 00 01 00 04 7A 6C 69 62 00 01 23 BA  PSAR....zlib..#º
00000010  00 00 00 1E 00 00 09 16 00 01 00 00 00 00 00 02  ................
Please note that all contributions to PS3 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS3 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)