Fix load from string wrongly printing that the string is a file

This commit is contained in:
BenCat07 2019-10-22 19:01:00 +02:00
parent bf2b98320c
commit f4580c0702

View File

@ -137,8 +137,8 @@ bool settings::SettingsReader::loadFromString(std::string stream)
settings::SettingsReader loader{ settings::Manager::instance() }; settings::SettingsReader loader{ settings::Manager::instance() };
if (stream == "") if (stream == "")
{ {
logging::Info("cat_load: Can't access file!"); logging::Info("cat_load: Empty String!");
g_ICvar->ConsoleColorPrintf(MENU_COLOR, "CAT: cat_load: File doesn't exist / can't open file!\n"); g_ICvar->ConsoleColorPrintf(MENU_COLOR, "CAT: cat_load: Empty String!\n");
return false; return false;
} }