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) --- MIDIPlayer.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'MIDIPlayer.h') diff --git a/MIDIPlayer.h b/MIDIPlayer.h index 811bea4..8009029 100644 --- a/MIDIPlayer.h +++ b/MIDIPlayer.h @@ -6,12 +6,14 @@ #include #include +#include "config.h" + #include class MIDIPlayer { public: - MIDIPlayer(const std::filesystem::path& path = "."); + MIDIPlayer(Config& config); void start(); @@ -32,6 +34,7 @@ private: void close_seq(void); void iterate_ports(void); + Config& m_config; boost::process::child m_child; std::filesystem::path m_dir; std::string m_file; -- cgit v1.2.3