trim2sflib: 2sflib with tag produces a broken output

Issue #5 resolved
loveemu created an issue

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)

  1. Christopher Snowhill repo owner

    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]

  2. loveemu 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.

  3. Log in to comment