diff options
Diffstat (limited to 'midiplay.cpp')
-rw-r--r-- | midiplay.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/midiplay.cpp b/midiplay.cpp index bc1ad08..36b732e 100644 --- a/midiplay.cpp +++ b/midiplay.cpp @@ -1,5 +1,7 @@ #include "MIDIPlayer.h" +#include "config.h" + #include <stdexcept> #include <string> #include <iostream> @@ -81,7 +83,8 @@ std::string to_xml(const std::vector<std::string>& filelist, const std::string& int main(int argc, char* argv[]) { try { - MIDIPlayer player; + Config config{argc, argv}; + MIDIPlayer player{config}; std::string ok_data{"<data><status>ok</status><message>OK</message></data>"}; std::string error_data{"<data><status>error</status><message>General Error</message></data>"}; |