diff options
author | Roland Reichwein <mail@reichwein.it> | 2025-01-11 10:36:20 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2025-01-11 10:36:20 +0100 |
commit | 3c7b85d8355c64dec5b4ce011753196d53774103 (patch) | |
tree | b350ef977987dd5e4155ae71d2c836a762225d56 /config.cpp | |
parent | aa210ed8a27387882fc7fd0dcd7cf961a9adc88f (diff) |
Added PIDFile
Diffstat (limited to 'config.cpp')
-rw-r--r-- | config.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -19,6 +19,8 @@ std::string config_filename = "click.cfg"; fs::path click_data_filename = "media/click.s16le"; +const std::string programname = "click"; + Config::Config(int argc, char** argv): m_argv(argc) { @@ -161,3 +163,9 @@ std::filesystem::path Config::get_click_data_filename() const { return fs::path{m_argv[0]}.parent_path() / click_data_filename; } + +std::string Config::get_programname() const +{ + return programname; +} + |