Merge pull request #10 from lucaspalomodevelop/dev

fixing linux compile bug
This commit is contained in:
Lucas Palomo Develop 2023-06-29 16:39:51 +02:00 committed by GitHub
commit 84471e20d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -2,10 +2,11 @@
#include "settings.h"
Setup setup = Setup();
Setup setup;
Settings::Settings(void)
{
setup = Setup();
readSettings();
}
@ -25,7 +26,6 @@ void Settings::readSettings()
settings = toml::parse(file);
}
std::string Settings::getSetting(std::string path)
{
std::string setting = settings[path].value_or("null");

View File

@ -4,7 +4,11 @@
#define SETTINGS_H
#include "../lib/toml++/toml.h"
#ifdef _WIN32
#include <direct.h>
#endif
#include "settings.h"
#include <fstream>
#include <iostream>