From bb56941f6b61529dd770475296d093727c68fdc6 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 17 Jan 2025 21:02:51 +0100 Subject: Automatically use correct files path (executable path or /media/usb) --- midiplay.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'midiplay.cpp') 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 #include #include @@ -81,7 +83,8 @@ std::string to_xml(const std::vector& filelist, const std::string& int main(int argc, char* argv[]) { try { - MIDIPlayer player; + Config config{argc, argv}; + MIDIPlayer player{config}; std::string ok_data{"okOK"}; std::string error_data{"errorGeneral Error"}; -- cgit v1.2.3