Ferenc Szontágh
2024-06-25 4f0f4a9d9d2f1a1430839121682c514be22cc641
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "Config.h"
#include <fstream>
 
bool Config::loadFromFile(const std::string& filename) {
    std::ifstream file(filename);
    if (!file.is_open()) {
        return false;
    }
    file >> configData;
    return true;
}
 
nlohmann::json Config::getConfig() const {
    return configData;
}