diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-12-17 01:40:02 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-12-17 01:40:02 -0500 |
commit | 58d0424dfc47e99c9c21396819a2234df158b4d0 (patch) | |
tree | 19c0b48efcfa0b04b1a31a59477c35f7f4724155 /abaddon.cpp | |
parent | 315a4a8df80b922bbb8132c625803443c031dfd3 (diff) | |
download | abaddon-portaudio-58d0424dfc47e99c9c21396819a2234df158b4d0.tar.gz abaddon-portaudio-58d0424dfc47e99c9c21396819a2234df158b4d0.zip |
abstract away settings some more
Diffstat (limited to 'abaddon.cpp')
-rw-r--r-- | abaddon.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/abaddon.cpp b/abaddon.cpp index d905b05..06dfab8 100644 --- a/abaddon.cpp +++ b/abaddon.cpp @@ -17,11 +17,11 @@ Abaddon::Abaddon() : m_settings("abaddon.ini") , m_emojis("res/emojis.bin") - , m_discord(m_settings.GetSettingBool("discord", "memory_db", false)) { // stupid but easy + , m_discord(m_settings.GetUseMemoryDB()) { // stupid but easy LoadFromSettings(); // todo: set user agent for non-client(?) - std::string ua = m_settings.GetSettingString("http", "user_agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36"); + std::string ua = m_settings.GetUserAgent(); m_discord.SetUserAgent(ua); m_discord.signal_gateway_ready().connect(sigc::mem_fun(*this, &Abaddon::DiscordOnReady)); @@ -130,7 +130,7 @@ int Abaddon::StartGTK() { } void Abaddon::LoadFromSettings() { - std::string token = m_settings.GetSettingString("discord", "token"); + std::string token = m_settings.GetDiscordToken(); if (token.size()) { m_discord_token = token; m_discord.UpdateToken(m_discord_token); |