aboutsummaryrefslogtreecommitdiff
path: root/utils/gen_adldata/progs_cache.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2017-11-03 00:54:47 +0300
committerWohlstand <admin@wohlnet.ru>2017-11-03 00:54:47 +0300
commit3d77fd6a78ece6527581927fd36539e6180a4369 (patch)
tree2b5435932d764438fb0a7128b59d667cccedc2d1 /utils/gen_adldata/progs_cache.cpp
parent7905ca7fc396903d5d622f522cc27401de1d3e78 (diff)
downloadlibADLMIDI-3d77fd6a78ece6527581927fd36539e6180a4369.tar.gz
libADLMIDI-3d77fd6a78ece6527581927fd36539e6180a4369.tar.bz2
libADLMIDI-3d77fd6a78ece6527581927fd36539e6180a4369.zip
Small fix of The DMX OP2 parser
Diffstat (limited to 'utils/gen_adldata/progs_cache.cpp')
-rw-r--r--utils/gen_adldata/progs_cache.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/gen_adldata/progs_cache.cpp b/utils/gen_adldata/progs_cache.cpp
index b51f4f8..b36ae2c 100644
--- a/utils/gen_adldata/progs_cache.cpp
+++ b/utils/gen_adldata/progs_cache.cpp
@@ -100,7 +100,12 @@ size_t InsertIns(
size_t InsertNoSoundIns()
{
// { 0x0F70700,0x0F70710, 0xFF,0xFF, 0x0,+0 },
- insdata tmp1 = { {0x00, 0x10, 0x07, 0x07, 0xF7, 0xF7, 0x00, 0x00, 0xFF, 0xFF, 0x00}, 0, false};
+ insdata tmp1 = MakeNoSoundIns();
struct ins tmp2 = { 0, 0, 0, false, 0.0 };
return InsertIns(tmp1, tmp1, tmp2, "nosound", "");
}
+
+insdata MakeNoSoundIns()
+{
+ return { {0x00, 0x10, 0x07, 0x07, 0xF7, 0xF7, 0x00, 0x00, 0xFF, 0xFF, 0x00}, 0, false};
+}