View Single Post
Old 18 June 2007, 15:53   #17
OddbOd
Registered User
 
Join Date: Jul 2005
Location: Australia
Age: 46
Posts: 666
Apologies for reviving an ancient thread but I thought it was probably worth adding a definitive footnote as there are many old MOD/S3M/XM files on Aminet that have this problem.

CHiEF, you were 99% there, for the detective work

funkyday.lha was packed with the Mac version of LHA, this can be confirmed by checking the OS ID byte at offset 0x24 or more simply by using the -verbose listing option in LHA (checked with GNUWin LHA 1.14i). The MOD itself is encapsulated in the original MacBinary format (as documented here) which was designed to retain the Mac filesystem's metadata on systems that do not support it natively.

The correct way to strip off the container without resorting to a module ripper or hex editor is to use a program like MacBinary (Win32) which will correctly remove the header and any resource fork that may be attached to the end of the file. Simply removing the first 128 (dec.) bytes with a hex editor does work but the file will not be it's original (pre MacBinary) size, in the case of funkyday.mod there are 50 null bytes on the end that should be removed.
OddbOd is offline  
 
Page generated in 0.05917 seconds with 11 queries