SARC: Difference between revisions

m
imported>Leoetlino
mNo edit summary
imported>Leoetlino
Line 27: Line 27:
Some files have specific alignment requirements (e.g. for GPU data). Because Nintendo's SARC library returns file data by giving pointers to the data section directly, special care must be taken to pack files in a way that satisfies all alignment requirements.
Some files have specific alignment requirements (e.g. for GPU data). Because Nintendo's SARC library returns file data by giving pointers to the data section directly, special care must be taken to pack files in a way that satisfies all alignment requirements.


Nintendo libraries do not use the resource system and expect files to be properly aligned. This is the case for layout archives (blarc) and agl environment files (Pack/Bootup.pack/Env/env.genvb).
Nintendo libraries do not use BotW's resource system and expect files to be properly aligned. This is the case for layout archives (blarc) and agl environment files (Pack/Bootup.pack/Env/env.genvb).


However unlike most other Nintendo games, for files that are managed by the game's resource system, aligning archive file data is usually unnecessary because the system will automatically allocate an aligned buffer and copy the archive data into it.
However unlike most other Nintendo games, for files that ''are'' managed by the game's resource system, aligning archive file data is usually unnecessary because the system will automatically allocate an aligned buffer and copy the archive data into it.


== Tools ==
== Tools ==
Line 36: Line 36:
* [https://github.com/aboood40091/SARC-Tool SARC Tool] (for Wii U and Switch)
* [https://github.com/aboood40091/SARC-Tool SARC Tool] (for Wii U and Switch)
* [https://github.com/Shadsterwolf/BotWUnpacker BotW Unpacker] (for Wii U)
* [https://github.com/Shadsterwolf/BotWUnpacker BotW Unpacker] (for Wii U)
* [https://github.com/leoetlino/sarc <code>sarc</code>] (for Wii U and Switch)
* [https://github.com/leoetlino/sarc <code>sarc</code>] (for Wii U and Switch) [[Category:File formats]] 
 
[[Category:File formats]] 
Anonymous user