hacbuild is a Work-In-Progress utility to rebuild Switch GameCards (XCI) from scratch.
hacbuild hfs0 <in_folder> <out_file>
Builds a hfs0 partitionhacbuild xci <in_folder> <out_file>
Builds a XCI from a directory containing 'root.hfs' and 'game_info.ini' (optional)hacbuild xci_auto <in_folder> <out_file>
Builds a XCI from a directory containing the folders 'normal', 'secure', 'update' and 'logo' if needed. 'game_info.ini' is also used.hacbuild read xci <in_file>
Reads a XCI, displays info on the console and dumps the game .ini configuration (for game_info.ini
) in the working directory.The program will automatically seek a keys.txt
file in the working directory in order to gather the only key needed: XCI Header Key
(xci_header_key = 01C5...
)
We have pushed hacbuild to a state where it can build valid XCI files, but there is still very much to do. Since we know the potential is there, we'd like people to contribute to the project.
hacbuild was inspired by:
We'd also like to thank SwitchBrew for their extensive research and documentation of the Nintendo Switch.