summaryrefslogtreecommitdiffhomepage
path: root/midiplay.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-17 21:02:51 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-17 21:02:51 +0100
commitbb56941f6b61529dd770475296d093727c68fdc6 (patch)
tree065c61ef71a00d0759afcdc0316150db278a7efd /midiplay.cpp
parent22ed919b2fffa933c8a72763fda2b603a92a18cf (diff)
Automatically use correct files path (executable path or /media/usb)
Diffstat (limited to 'midiplay.cpp')
-rw-r--r--midiplay.cpp5
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>"};