Previous Thread
Next Thread
Print Thread
Joined: May 2006
Posts: 111
F-3582 Offline OP
Senior Member
OP Offline
Senior Member
Joined: May 2006
Posts: 111
Or better: Of all my zipped .SMD files at once?

I know, this is more HazeMD than MESS, but anyway, I tried to organize my collection using ClrMAMEPro and it skipped almost everything except for a few files. Turns out that ClrMAMEPro (and probably HazeMD and M1) don't like ROM headers much, but ClrMAMEPro seems to be unable to do something about it.

So, is there a way to remove them from all my precious games without having to manually unzip every file and delete a portion using a Hex editor. A batch would be cool.

Last edited by F-3582; 09/18/08 03:57 PM.
Joined: May 2007
Posts: 95
M
Member
Offline
Member
M
Joined: May 2007
Posts: 95
depends on the format; if the header is always a uniform size and not interleaved with the ROM data, it should be a simple task, for example if you have a *nix environment (if you use Windows, you can get MSYS or something similar, and you'll need Info-Zip binaries in your path):
Code:
for i in *.zip
do
  unzip "$i"
  dd if="`basename "$i" zip`smd" of="`basename "$i" zip`smd.new" bs=512 skip=1
  mv "`basename "$i" zip`smd.new" "`basename "$i" zip`smd"
  zip -um "$i" "`basename "$i" zip`smd"
done

Replace "bs=512" with the amount of bytes the header takes up.

Last edited by Mike S.; 09/19/08 07:26 AM.
Joined: Jan 2006
Posts: 3,690
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2006
Posts: 3,690
I think tools like ucon (and probably goodgen as well can) remove the header from all the carts at once

Joined: Jul 2007
Posts: 4,625
A
Very Senior Member
Offline
Very Senior Member
A
Joined: Jul 2007
Posts: 4,625
Here you can find some Tools. Also on Zophar´s website you can find some tools.

Last edited by Anna Wu; 09/19/08 08:17 AM.

Link Copied to Clipboard
Who's Online Now
2 members (Rik, 1 invisible), 23 guests, and 2 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,071
Posts118,945
Members5,014
Most Online890
Jan 17th, 2020
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com