diff options
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; +} + |