Trim v0.22

Heres a new version of the trim.exe which outputs the file as blah.trim.nds. No other changes made, windows and linux versions included. If you find an image that this prog over trims please comment below.

trim-0.22.zip

8 Responses to “Trim v0.22”

  1. subwarez Says:

    Thank you i will test it on linux ;)

  2. master_asia Says:

    thanks dude I’ll gonna give it a try because the rom trimmer which is included in the R4 don’t work

  3. Rejk Says:

    This fails for me, if i specify or drag on a file in the windows version, it screws up the output file
    adds three or for jibberish chars, you must not be limiting the string, or getting the correct substring or something, and getting a minor overflow?

    would you ever release the source for this?

  4. ratx Says:

    Rejk: damm I was hoping no one would report that bug. I’ve released a fixed version. I will release the source one day; just have a few more features to add first.

  5. Skram Says:

    Tested your app (v0.22) on the first rom I picked outa my bunch, and it seemed to leave blank junk at the end of the file. About 2019 bytes could have been left off. I experimented with rom #0035 - Touch! Kirby’s Magic Paintbrush (J)(GBXR).nds. I used the supplied R4 DS Rom Trimmer and it gets it almost exactly, only 28 bytes of 0’s at the end of the file, I’m assuming they’re left for padding. Your program read the size as 0×32b8143.

    I suggest getting a hex editor like UltraEdit or something and peeking at the output and getting a closer look at what’s really going on here when it’s trimmed. If I manually trim a rom using a hex editor by removing the 0’s or F’s from the end of the file and stopping when I get to data, I could almost reproduce the output of what the R4 trimmer does. I’m only off about 4-10 bytes due to either offset boundaries or padding. Probably needs a size of multiples of 16 or something.

    With this particular ROM #35, offset 0×80-0×83 = 60 79 2B 03. Convert to HEX it’s 0×32B7960. Convert to DEC it’s 53180768, which is the exact filesize R4’s ROM Trimmer created when it was trimmed from 64MB. Somehow your program added 2019 to the value extracted from 0×80-0×83.

  6. ratx Says:

    Sorry for the delay in response - thanks for your comments. For various reasons trim leaves a small amount blank space at the end of the file. I may in future make this a command line option but for now since I have not much time to spend, I go with a cautionary approach to trimming.

  7. sam Says:

    i dont no how to work it i try running the trim.exe and it just goes into a command promt then closses! im on a computer on windows. but soz im a rookie! :|

  8. ratx Says:

    drag the file onto trim.exe

Leave a Reply


Bad Behavior has blocked 50 access attempts in the last 7 days.