summaryrefslogtreecommitdiffhomepage
path: root/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'config.cpp')
-rw-r--r--config.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.cpp b/config.cpp
index f8bf89c..d0a7671 100644
--- a/config.cpp
+++ b/config.cpp
@@ -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;
+}
+