SARC Tool Switch

From GameBrew
SARC Tool
Sarctoolnx.png
General
Authoraboood40091
TypePC Utilities
Version0.5
LicenseGPL-3.0
Last Updated2019/08/25
Links
Download
Website
Source

A tool for extracting/packing SARC/SZS files.

Makes use of SarcLib and libyaz0.

User guide

Requirements

  • SarcLib v0.3 or higher (get it using pip)
  • libyaz0 v0.5 or higher (get it using pip)

Usage

main [option...] file/folder

Packing Options:
 -o <output>           output file name (Optional)
 -little (or -l)       output will be in little endian if this is used
 -compress <level>     Yaz0 (SZS) compress the output with the specified level(0-9) (If unsure, use 1)
                       0: No compression (Fastest)
                       9: Best compression (Slowest)

Example usage

Extracting an szs file named "test.szs":
main test.szs

Extracting a sarc file named "test.sarc":
main test.sarc

Packing a folder named "test" as a big endian (Wii U) sarc file:
main test

Packing a folder named "test" as a little endian (3DS / Switch) sarc file:
main -little test

Packing a folder named "test" as a big endian (Wii U) sarc file with the file name "test2.sarc":
main -o test2.sarc test

Packing a folder named "test" as a big endian (Wii U) szs file using level 9 (best/slowest compression):
main -compress 9 test

Packing a folder named "test" as a little endian (3DS / Switch) szs file using level 9 (best/slowest compression):
main -little -compress 9 test

Packing a folder named "test" as a big endian (Wii U) szs file with the file name "test2.szs", using level 9 (best/slowest compression):
main -compress 9 -o test2.szs test

Screenshots

sarctoolnx2.png

Changelog

v0.5 2918/08/25

  • Fixed required alignment for SMM2 Course data.

v0.4 2019/07/08

  • Fixed getting alignment for the first file. (packing 1 file)
  • Added alignment for SHARC and SHARCFB.
  • Fixed a rare edge case where extracting doesn't work.

v0.3 2018/07/02

  • Added support for extracting files.
  • Added support for SZS (Yaz0 compressed) files.
  • The data start offset and alignment are now automatically calculated.
  • Added support for extracting and packing files with only the name hash.

v0.2 2018/08/05

  • Fixed an issue with paths.

v0.1 2017/08/05

  • Initial release.

External links

Advertising: