EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: What is CLRMAMEPRO doing when it “resizes” roms?  (Read 3373 times)

UnluckyForSome

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
  • Operating System:
  • Mac OS X Mac OS X
  • Browser:
  • Safari 11.0 Safari 11.0
    • View Profile

So recently I had to convert a bunch of TOSEC Dreamcast sets into The. ReDump standard using a tool I found online. Upon scanning with CLRMAMEPRO it alerted me that several of these converted files were the wrong size by a few bytes. I was just wondering why this would be and how (if the rom/iso is the wrong size) the size is changed without screwing up any of the precious data inside?

Thanks :-D
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 67.0.3396.87 Chrome 67.0.3396.87
    • View Profile
Re: What is CLRMAMEPRO doing when it “resizes” roms?
« Reply #1 on: 14 June 2018, 18:18 »

well, a wrong size is of course only fixable with a given hash for the correctly sized rom.

So assume you got a file with size 2kb and a hashvalue of let's say 0x12345678 and a given "right" size of 1kb. Now cmpro checks the first half of the 2kb file if it matches the checksum...or the 2nd half....or it starts to look at a block of 1kb size which matches the checksum etc...it does some checks like bitswaps, or fill with 0x00 / 0xff (when the right size should be bigger)....etc etc...some are done during the "fix checksum check (in combination with checksum analysis)...e.g. when the size is ok but the checksum is not

So it does not simply cut down the file ;-)
« Last Edit: 14 June 2018, 18:21 by Roman »
Logged

UnluckyForSome

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 60.0 Firefox 60.0
    • View Profile
Re: What is CLRMAMEPRO doing when it “resizes” roms?
« Reply #2 on: 14 June 2018, 20:31 »

Ahh I think I understand, clever stuff! Thanks for the explanation Roman :D
Logged
Pages: [1]   Go Up
 

Page created in 0.187 seconds with 20 queries.

anything