Commit 68c4cac1 authored by Robert Scott James's avatar Robert Scott James

Merge branch 'master' of gitlab.sucs.swan.ac.uk:rjames93/IdleCrawl

parents 929b2e50 55eeddf5
......@@ -7,6 +7,7 @@ using namespace libconfig;
int loadConfig(std::string file,Config *cfg){
try{
cfg->readFile(file.c_str());
cfg->setAutoConvert (1);
return (0);
} catch(const FileIOException &fioex){
std::cerr << "I/O error while reading file." << std::endl;
......@@ -51,4 +52,4 @@ float fromConfig(Config *cfg,char * addr,float def){
std::cerr << "WARNING: config value " << addr << " not a float. using default" << std::endl;
return def;
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment