Editing PlayStation archive (PSARC)
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 958: | Line 958: | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
*Notes | *Notes | ||
**The original path of the .psarc is | **The original path of the .psarc is C:\psarctests\source files\test.psarc (it will be used as the path where the rebuild .psarc will be created) | ||
**Paths starts with an slash | **Paths starts with an slash (so has been created with absolute flag) | ||
** | **dummy.txt and Image3.png was archived without compression (appears with 100%) | ||
**There is an empty line at the end | **There is an empty line at the end | ||
}} | }} | ||
Line 979: | Line 979: | ||
\JPGfolder1\JPGfolder2\Image2.jpg (209\12524 1%) | \JPGfolder1\JPGfolder2\Image2.jpg (209\12524 1%) | ||
\PNGfolder1\PNGfolder2\PNGfolder3\Image3.png (6142\6142 100%) | \PNGfolder1\PNGfolder2\PNGfolder3\Image3.png (6142\6142 100%) | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
}} | }} | ||
Line 997: | Line 998: | ||
\JPGfolder1\JPGfolder2\Image2.jpg (209\12524 1%) | \JPGfolder1\JPGfolder2\Image2.jpg (209\12524 1%) | ||
\PNGfolder1\PNGfolder2\PNGfolder3\Image3.png (6142\6142 100%) | \PNGfolder1\PNGfolder2\PNGfolder3\Image3.png (6142\6142 100%) | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
}} | }} | ||
Line 1,018: | Line 1,020: | ||
\JPGfolder1\JPGfolder2\Image2.jpg (209\12524 1%) | \JPGfolder1\JPGfolder2\Image2.jpg (209\12524 1%) | ||
\PNGfolder1\PNGfolder2\PNGfolder3\Image3.png (6142\6142 100%) | \PNGfolder1\PNGfolder2\PNGfolder3\Image3.png (6142\6142 100%) | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
}} | }} | ||
Line 1,025: | Line 1,028: | ||
{{Boxframe1|content= | {{Boxframe1|content= | ||
find: | find: | ||
absolute="false" ignorecase="false">\r\n\t\t<compression type="zlib" />\r\n\t\t<strip regex="C:\\source\\folder\\" />\r\n\r\n\t\t<file path="C:\\source\\folder\\\\ | |||
replace by: | replace by: | ||
absolute="true" ignorecase="false">\r\n\t\t<compression type="zlib" />\r\n\t\t<strip regex="sourcefolder" />\r\n\r\n\t\t<file path="C:\\source\\folder\\\\ | |||
The resulting file: | The resulting file: | ||
{{Boxcode|code=<syntaxhighlight lang="xml"> | {{Boxcode|code=<syntaxhighlight lang="xml"> | ||
Line 1,039: | Line 1,042: | ||
\JPGfolder1\JPGfolder2\Image2.jpg (209\12524 1%) | \JPGfolder1\JPGfolder2\Image2.jpg (209\12524 1%) | ||
\PNGfolder1\PNGfolder2\PNGfolder3\Image3.png (6142\6142 100%) | \PNGfolder1\PNGfolder2\PNGfolder3\Image3.png (6142\6142 100%) | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
}} | }} | ||
*'''Step 6 - Replace parentheses (per-file compression autodetection)''' | *'''Step 6 - Replace parentheses (per-file compression autodetection)''' | ||
This step replaces only the parentheses for the lines of the files that was archived without compression and adds the attribute | This step replaces only the parentheses for the lines of the files that was archived without compression and adds the attribute compressed="false" | ||
{{Boxframe1|content= | {{Boxframe1|content= | ||
find: | find: |