From e308741fd9ea2cc6f7ea65e66967909974765b78 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 5 Jul 2018 07:19:12 +0200 Subject: Update translations --- lib/configuration/configuration.cpp | 4 ++++ lib/configuration/defaults.h.win32 | 2 ++ 2 files changed, 6 insertions(+) (limited to 'lib/configuration') diff --git a/lib/configuration/configuration.cpp b/lib/configuration/configuration.cpp index cae21fd..5da7fb4 100644 --- a/lib/configuration/configuration.cpp +++ b/lib/configuration/configuration.cpp @@ -18,6 +18,9 @@ namespace po = boost::program_options; inline std::string defaultUserConfigLocation() { +#ifdef config_path + return config_path; +#else // try to locate an existing config QString path = QStandardPaths::locate(QStandardPaths::ConfigLocation, "smolbote/smolbote.cfg"); @@ -26,6 +29,7 @@ inline std::string defaultUserConfigLocation() path = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) + "/smolbote/smolbote.cfg"; return path.toStdString(); +#endif } Configuration::Configuration(QObject *parent) diff --git a/lib/configuration/defaults.h.win32 b/lib/configuration/defaults.h.win32 index 9a8d5b3..dee9b14 100644 --- a/lib/configuration/defaults.h.win32 +++ b/lib/configuration/defaults.h.win32 @@ -1,6 +1,8 @@ #ifndef SMOLBOTE_DEFAULTS #define SMOLBOTE_DEFAULTS +#define config_path "smolbote.ini" + #define filter_path "hosts" #define plugins_path "plugins" #define profiles_path "profiles" -- cgit v1.2.1