diff options
Diffstat (limited to 'src/dgxmlparser.cc')
-rw-r--r-- | src/dgxmlparser.cc | 5 |
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"); |