mirror of
https://github.com/lucaspalomodevelop/autom.git
synced 2026-03-12 23:27:21 +00:00
fixing linux compile bug
This commit is contained in:
parent
243be8220d
commit
453831e7df
@ -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");
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user