Open Rondom opened 6 years ago
So don't use that mode. It's only provided in case it actually proves useful.
Default mode is to count patterns from the order list. This mode counts all the sample data present in the file, and assumes all the rest of the file is patterns.
Thanks for the quick answer.
It's used by aldmb :-) What is the recommended value for the _restrict parameter, then? 0 or 1?
_restrict should probably be 1 unless you absolutely know you'll be working with 15 sample modules, which have no identifying signature, so they'll usually succeed on load, even if you pass in invalid data.
OS: Debian testing Arch: amd64
I noticed that dumb_read_mod fails when called with DUMB_MOD_RESTRICT_OLD_PATTERN_COUNT and the attached mod-file from the game Alex the Allegator 4. alex4_once_i_was_an_egg.tar.gz
I tracked it down to a read past the end of the file here: https://github.com/kode54/dumb/blob/741512775989f2d3a9497167030742797c43e63a/src/it/readmod.c#L47-L50