diff options
author | Roland Reichwein <mail@reichwein.it> | 2025-01-17 21:02:51 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2025-01-17 21:02:51 +0100 |
commit | bb56941f6b61529dd770475296d093727c68fdc6 (patch) | |
tree | 065c61ef71a00d0759afcdc0316150db278a7efd /midiplay.cpp | |
parent | 22ed919b2fffa933c8a72763fda2b603a92a18cf (diff) |
Automatically use correct files path (executable path or /media/usb)
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>"}; |