diff --git a/es-app/src/main.cpp b/es-app/src/main.cpp index b8616de2bb..feb624e5f5 100644 --- a/es-app/src/main.cpp +++ b/es-app/src/main.cpp @@ -234,9 +234,10 @@ int main(int argc, char* argv[]) Settings::getInstance()->setString("ConfigDirectory", getDefaultConfigDirectory()); } } - if(!Settings::getInstance()->loadFile()){ - std::cerr << "Couldn't load settings from \"" << getConfigDirectory(); - return 1; + + bool loaded_file = Settings::getInstance()->loadFile(); + if(!loaded_file){ + std::cout << "Couldn't load settings from \"" << getConfigDirectory() << ". Will create new ones." << "\n"; } Log::open(); @@ -270,7 +271,7 @@ int main(int argc, char* argv[]) // something went terribly wrong if(errorMsg == NULL) { - LOG(LogError) << "Unknown error occured while parsing system config file."; + LOG(LogError) << "Unknown error occurred while parsing system config file."; if(!scrape_cmdline) Renderer::deinit(); return 1; diff --git a/es-core/src/Settings.cpp b/es-core/src/Settings.cpp index ae50dac53a..23c165fe02 100644 --- a/es-core/src/Settings.cpp +++ b/es-core/src/Settings.cpp @@ -122,7 +122,9 @@ bool Settings::loadFile() const std::string path = getConfigDirectory() + "/es_settings.cfg"; if(!boost::filesystem::exists(path)) + { return false; + } pugi::xml_document doc; pugi::xml_parse_result result = doc.load_file(path.c_str());