sezero / mikmod

Mikmod Sound System (mirror of git repo at https://sf.net/projects/mikmod/)
http://mikmod.sourceforge.net/
72 stars 22 forks source link

Add support for Mod's Grave .WOW files. #11

Closed AliceLR closed 3 years ago

AliceLR commented 3 years ago

Mod's Grave .WOW files are an unusual .MOD variant with a M.K. signature but 8 channels. They are converted from .669 files using a converter packaged with the Mod's Grave player for DOS. By calculating the expected size of a .WOW file, it is possible to detect these files.

This patch also includes some extra checks to avoid false positives in .WOW detection when loading certain mods (example: ponylips.mod).

I've tested this patch a bit and I'm fairly confident it works correctly now. Fixes #7.