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"
|
#include "settings.h"
|
||||||
|
|
||||||
Setup setup = Setup();
|
Setup setup;
|
||||||
|
|
||||||
Settings::Settings(void)
|
Settings::Settings(void)
|
||||||
{
|
{
|
||||||
|
setup = Setup();
|
||||||
readSettings();
|
readSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -25,7 +26,6 @@ void Settings::readSettings()
|
|||||||
settings = toml::parse(file);
|
settings = toml::parse(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
std::string Settings::getSetting(std::string path)
|
std::string Settings::getSetting(std::string path)
|
||||||
{
|
{
|
||||||
std::string setting = settings[path].value_or("null");
|
std::string setting = settings[path].value_or("null");
|
||||||
|
|||||||
@ -4,7 +4,11 @@
|
|||||||
#define SETTINGS_H
|
#define SETTINGS_H
|
||||||
|
|
||||||
#include "../lib/toml++/toml.h"
|
#include "../lib/toml++/toml.h"
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user