shithub: dumb

Download patch

ref: 9ab5cfbbfdd10603b8f3068ed994982e989839ec
parent: 6bb91f3cbe5057970466bfea328fec49f63ba399
author: Christopher Snowhill <kode54@gmail.com>
date: Sun Sep 17 12:20:04 EDT 2017

Update dumb.h

Added enum flags for the MOD loader restrict_ parameter.

--- a/include/dumb.h
+++ b/include/dumb.h
@@ -424,7 +424,12 @@
 int dumb_it_callback_terminate(void *data);
 int dumb_it_callback_midi_block(void *data, int channel, unsigned char midi_byte);
 
-/* dumb_*_mod*: restrict_ |= 1-Don't read 15 sample files / 2-Use old pattern counting method */
+/* dumb_*_mod*: restrict_ - OR these together */
+enum
+{
+    DUMB_MOD_RESTRICT_NO_15_SAMPLE = (1 << 0), /* Don't load 15 sample files, which have no identifying signature */
+    DUMB_MOD_RESTRICT_OLD_PATTERN_COUNT = (1 << 1) /* Use old pattern counting method */
+};
 
 DUH *dumb_load_it(const char *filename);
 DUH *dumb_load_xm(const char *filename);