populate channel list from READY message and other shit

This commit is contained in:
ouwou
2020-08-19 01:13:36 -04:00
parent 3c3fe3b9f7
commit 69404a97cd
9 changed files with 746 additions and 14 deletions

View File

@@ -1,7 +1,15 @@
#include "settings.hpp"
#include <filesystem>
#include <fstream>
SettingsManager::SettingsManager(std::string filename)
: m_filename(filename) {
if (!std::filesystem::exists(filename)) {
std::fstream fs;
fs.open(filename, std::ios::out);
fs.close();
}
auto rc = m_ini.LoadFile(filename.c_str());
m_ok = rc == SI_OK;
}