Hey
@AboodXD ! Firstly, thanks for this awesome tool/lib.
I tried to decompress sarc files with it and it worked like a charm, however, putting them back together resulted in changed file sizes and content.
For instance, the beginning bytes of original sarc are "S A R C" (and the file is 916KB), whereas the recompressed one begins with the bytes "Y a z 0", is 1031KB and contains a lot of FF bytes in the middle of texts.
Am I doing something wrong?
Thanks in advance!
EDIT: Asking was the
rubber ducky method I needed! Turns out I was using the
-compression
flag
(I thought I would need this for it to recombine all files), which resulted in an szs file (a sarc already compressed inside a zstd file). Removing the flag created an szs extension too, but without the compression and now both files are
identical! Nevermind, newbies
Documenting this here in case a future reader scratches their head on this.