View Issue Details

IDProjectCategoryView StatusLast Update
0001924OpenMPTlibopenmptpublic2025-09-19 16:39
Reportersound10gic Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Summary0001924: Incomplete CheckMODMagic()
Description

Mod files from Star Trekker V1.3 with 8 channels are not recognized correctly. This is due to the Magic, which can also be called FLTM.

} else if((!memcmp(magic, "FLT", 3) || !memcmp(magic, "EXO", 3)) && (magic[3] == '4' || magic[3] == '8'))

should be


} else if((!memcmp(magic, "FLT", 3) || !memcmp(magic, "EXO", 3)) && (magic[3] == '4' || magic[3] == '8' || magic[3] == 'M')) {

If magic[3] == 'M'
result.numChannels = 8;
else
result.numChannels = static_cast<CHANNELINDEX>(magic[3] - '0');

or something like that ;-)

Steps To Reproduce

Just import an 8-Channel StarTrekker Modfile

Additional Information

Find it in soundlib/Load_mod.cpp (v0.9.0-pre.9) Line 0000203

TagsNo tags attached.
Has the bug occurred in previous versions?
Tested code revision (in case you know it)

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-09-19 16:33 sound10gic New Issue
2025-09-19 16:39 sound10gic Description Updated