Allow to use an empty lms.conf file, default values are now all hardcoded, fixes #584
This commit is contained in:
@@ -38,12 +38,12 @@ namespace lms::core
|
||||
|
||||
private:
|
||||
// Default values are returned in case of setting not found
|
||||
std::string_view getString(std::string_view setting, std::string_view def = "") override;
|
||||
std::string_view getString(std::string_view setting, std::string_view def) override;
|
||||
void visitStrings(std::string_view setting, std::function<void(std::string_view)> _func, std::initializer_list<std::string_view> defs) override;
|
||||
std::filesystem::path getPath(std::string_view setting, const std::filesystem::path& def = std::filesystem::path()) override;
|
||||
unsigned long getULong(std::string_view setting, unsigned long def = 0) override;
|
||||
long getLong(std::string_view setting, long def = 0) override;
|
||||
bool getBool(std::string_view setting, bool def = false) override;
|
||||
std::filesystem::path getPath(std::string_view setting, const std::filesystem::path& def) override;
|
||||
unsigned long getULong(std::string_view setting, unsigned long def) override;
|
||||
long getLong(std::string_view setting, long def) override;
|
||||
bool getBool(std::string_view setting, bool def) override;
|
||||
|
||||
libconfig::Config _config;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user