mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
allow limiting concurrent http requests
add Semaphore update SettingsManager a little
This commit is contained in:
1 parent
bbe36a8246
commit
43f87b4bca
7 files changed
+67
-9
No files matched your search
+3
-3
@@ -14,12 +14,12 @@ SettingsManager::SettingsManager(std::string filename)
|
||||
m_ok = rc == SI_OK;
|
||||
}
|
||||
|
||||
std::string SettingsManager::GetSetting(std::string section, std::string key, std::string fallback) {
|
||||
std::string SettingsManager::GetSettingString(std::string section, std::string key, std::string fallback) const {
|
||||
return m_ini.GetValue(section.c_str(), key.c_str(), fallback.c_str());
|
||||
}
|
||||
|
||||
void SettingsManager::SetSetting(std::string section, std::string key, std::string value) {
|
||||
m_ini.SetValue(section.c_str(), key.c_str(), value.c_str());
|
||||
int SettingsManager::GetSettingInt(std::string section, std::string key, int fallback) const {
|
||||
return std::stoul(GetSettingString(section, key, std::to_string(fallback)));
|
||||
}
|
||||
|
||||
bool SettingsManager::IsValid() const {
|
||||
|
||||
Reference in new issue
Block a user