summaryrefslogtreecommitdiff
path: root/src/dgxmlparser.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2019-10-26 19:11:03 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2019-10-26 20:04:01 +0200
commit85ce939590e9f60d51952b4cc1e6af6f9820ca28 (patch)
tree25b66ce7fbed77cb3b1d3e54065c03e67f31d125 /src/dgxmlparser.cc
parent6ad9b9d2ae3341bbd4914f4951070a02d3dd4d2b (diff)
Add default midimap functionality.
Move directory.{h,cc} to src/ for this.
Diffstat (limited to 'src/dgxmlparser.cc')
-rw-r--r--src/dgxmlparser.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dgxmlparser.cc b/src/dgxmlparser.cc
index b924cc8..0d3cdcd 100644
--- a/src/dgxmlparser.cc
+++ b/src/dgxmlparser.cc
@@ -245,6 +245,11 @@ bool parseDrumkitFile(const std::string& filename, DrumkitDOM& dom, LogFunction
clickmap, "colour", logger, filename, true);
}
}
+ pugi::xml_node default_midimap = metadata.child("defaultmidimap");
+ if(default_midimap != pugi::xml_node())
+ {
+ res &= attrcpy(meta.default_midimap_file, default_midimap, "src", logger, filename, true);
+ }
}
pugi::xml_node channels = doc.child("drumkit").child("channels");