Can't trim some GBA roms

Discussion in 'GBA - Flashing Hardware and Software' started by nl255, Oct 16, 2008.

  1. nl255
    OP

    nl255 GBAtemp Addict

    Member
    2,599
    367
    Apr 9, 2004
    I have a few roms that don't seem to want to trim. They are Riviera: the Promised Land, Sword of Mana, and the Capcom Classics Mini Mix. Has anyone been able to trim these roms or are they just untrimmable. I have noticed a repeating pattern like FF 09 00 C0 (Sword of Mana) or 00 20 10 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 10 00 00 00 00 (Riviera) near the end followed by some other junk FF FF FF FE, etc. Are these roms just untrimmable as they actually use all the space or is all that stuff some kind of watermarking or other removable stuff?



    1267 - Sword of Mana (US).gba - CRC32: 7F1EAC75
    2039 - Riviera - The Promised Land (US).gba - CRC32: 4FB6958D
    2489 - Capcom Classics - Mini Mix (U)(Rising Sun).gba - CRC32: 0BB2D391
     
  2. how_do_i_do_that

    how_do_i_do_that Blue Wizard is about to die.

    Member
    4,929
    263
    May 16, 2008
    Antarctica
    You have insufficient posts to view user location.
    some come pretrimmed if you went and downloaded it somewhere.
     
  3. nl255
    OP

    nl255 GBAtemp Addict

    Member
    2,599
    367
    Apr 9, 2004
    Nope, they are the full size roms. Any idea if parts of it are safe to trim or not?
     
  4. Rayder

    Rayder Mostly lurking lately....

    Former Staff
    6,613
    133
    Jan 14, 2007
    United States
    USA
    I'm not sure how all slot2 flashcarts work, but when you patch them for the cart, they pretty much already trim them. So, unless you mean you're running them in an emu on the PC, I don't really see where trimming a GBA ROM is necessary.
     
  5. TheSpade

    TheSpade GBAtemp Advanced Fan

    Member
    504
    0
    Apr 15, 2006
    United States
    Eastern U.S.A.
    Are you trimming these manually? If so, then you are a brave soul indeed. If not, then what trimmer are you using? I understand that NDSTokyoTrim now does GBA ROMs with excellent results. Give it a try.
     
  6. Mikef

    Mikef Advanced Member

    Newcomer
    61
    0
    Aug 21, 2008
    United States
    You can trim only repeating 00 or FF from the end of the file going backwards until it changes to something else, keep at least 1 byte 00 or FF at the end.

    Mike
     
  7. DanTheManMS

    DanTheManMS aka Ricochet Otter

    Member
    4,330
    107
    Jun 2, 2007
    United States
    Georgia
    If it's like several megabytes of 00 or FF, then a few random bytes, then a few more 00 or FF bytes, chances are you can trim away those few garbage bytes and continue trimming until you get up to what is obviously actual data. Not necessarily true for all games, but it's worth a shot.