diff --git a/src/settings/SettingCommands.cpp b/src/settings/SettingCommands.cpp index 26c22c9e..647fcbb5 100755 --- a/src/settings/SettingCommands.cpp +++ b/src/settings/SettingCommands.cpp @@ -93,10 +93,6 @@ static CatCommand save("save", "", [](const CCommand &args) { void load_thread(const CCommand &args) { -#if not ENABLE_VISUALS - std::this_thread::sleep_for(std::chrono_literals::operator""s(10)); - settings::RVarLock.store(true); -#endif std::this_thread::sleep_for(std::chrono_literals::operator""s(1)); settings::SettingsReader loader{ settings::Manager::instance() }; if (args.ArgC() == 1) @@ -129,9 +125,7 @@ void load_thread(const CCommand &args) static CatCommand load("load", "", [](const CCommand &args) { if (!settings::RVarLock.load()) { -#if ENABLE_VISUALS settings::RVarLock.store(true); -#endif std::thread saver(load_thread, args); saver.detach(); } diff --git a/src/settings/SettingsIO.cpp b/src/settings/SettingsIO.cpp index 94b2c5e4..df2f2a07 100755 --- a/src/settings/SettingsIO.cpp +++ b/src/settings/SettingsIO.cpp @@ -93,10 +93,9 @@ settings::SettingsReader::SettingsReader(settings::Manager &manager) bool settings::SettingsReader::loadFrom(std::string path) { - logging::Info("Path: %s", path.c_str()); stream.open(path, std::ios::in | std::ios::binary); - if (stream.bad() || stream.fail()) + if (stream.fail()) { logging::Info("cat_load: Can't access file!"); return false;