Can't trim some GBA roms

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

Oct 16, 2008

Can't trim some GBA roms by nl255 at 7:18 AM (1,284 Views / 0 Likes) 6 replies

  1. nl255
    OP

    Member nl255 GBAtemp Advanced Maniac

    Joined:
    Apr 9, 2004
    Messages:
    1,998
    Country:
    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

    Member how_do_i_do_that Blue Wizard is about to die.

    Joined:
    May 16, 2008
    Messages:
    4,805
    Country:
    Antarctica
    some come pretrimmed if you went and downloaded it somewhere.
     
  3. nl255
    OP

    Member nl255 GBAtemp Advanced Maniac

    Joined:
    Apr 9, 2004
    Messages:
    1,998
    Country:
    Nope, they are the full size roms. Any idea if parts of it are safe to trim or not?
     
  4. Rayder

    Former Staff Rayder Mostly lurking lately....

    Joined:
    Jan 14, 2007
    Messages:
    6,613
    Location:
    USA
    Country:
    United States
    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

    Member TheSpade GBAtemp Advanced Fan

    Joined:
    Apr 15, 2006
    Messages:
    504
    Location:
    Eastern U.S.A.
    Country:
    United States
    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

    Newcomer Mikef Advanced Member

    Joined:
    Aug 21, 2008
    Messages:
    61
    Country:
    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

    Member DanTheManMS aka Ricochet Otter

    Joined:
    Jun 2, 2007
    Messages:
    4,325
    Location:
    Georgia
    Country:
    United States
    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.
     

Share This Page