trim2sflib: 2sflib with tag produces a broken output
Issue #5
resolved
When I used a tagged 2sflib as input, the output file becomes broken.
In detail, the head bytes of the compressed executable area of the trimmed 2sflib are overwritten by a sequence starts by [TAG]. It's a corrupt zlib data, of course.
Comments (4)
-
repo owner -
reporter Yes, I did. And I was able to trim Super Princess Peach 2sflib correctly, by removing 2sflib's [TAG] section using a hex editor.
I looked into the source code a little, but I didn't get why it happened. As you said, it should ignoring the tag. Strange.
-
repo owner Oops, that was dumb. It should be fixed now.
-
reporter - changed status to resolved
Confirmed the fix. Thank a lot.
- Log in to comment
Are you sure? It should be completely ignoring the tag on the .2sflib. Are you using the trimmer correctly?
The correct syntax is:
trim2sf the.2sflib 1.mini2sf 2.mini2sf [etc. you must include every single mini2sf]