remove SimpleIni as a dependency

use Glib::KeyFile instead which is basically the same file format
also read into and save from struct once, cuz its faster and less redundant
This commit is contained in:
ouwou
2021-11-24 03:14:41 -05:00
parent a51a54bc59
commit 4326c5e29b
22 changed files with 181 additions and 230 deletions

View File

@@ -1303,13 +1303,11 @@ void DiscordClient::HandleGatewayHello(const GatewayMessage &msg) {
// perhaps this should be set by the main class
std::string DiscordClient::GetAPIURL() {
static const auto url = Abaddon::Get().GetSettings().GetAPIBaseURL();
return url;
return Abaddon::Get().GetSettings().APIBaseURL;
}
std::string DiscordClient::GetGatewayURL() {
static const auto url = Abaddon::Get().GetSettings().GetGatewayURL();
return url;
return Abaddon::Get().GetSettings().GatewayURL;
}
DiscordError DiscordClient::GetCodeFromResponse(const http::response_type &response) {