Some minor log output changes.

This commit is contained in:
Leon Styhre 2021-01-25 18:15:01 +01:00
parent ec5f1c1b5f
commit 969be161d9
2 changed files with 6 additions and 6 deletions

View file

@ -303,7 +303,7 @@ void saveMap(pugi::xml_document& doc, std::map<K, V>& map, const std::string& ty
void Settings::saveFile()
{
LOG(LogDebug) << "Settings::saveFile(): Saving Settings to file.";
LOG(LogDebug) << "Settings::saveFile(): Saving settings to es_settings.cfg";
const std::string path = Utils::FileSystem::getHomePath() +
"/.emulationstation/es_settings.cfg";
@ -344,7 +344,7 @@ void Settings::loadFile()
pugi::xml_parse_result result = doc.load_file(path.c_str());
#endif
if (!result) {
LOG(LogError) << "Could not parse Settings file.\n " << result.description();
LOG(LogError) << "Could not parse the es_settings.cfg file\n " << result.description();
return;
}
@ -364,14 +364,14 @@ void Settings::loadFile()
type Settings::getFunction(const std::string& name) \
{ \
if (mapName.find(name) == mapName.cend()) { \
LOG(LogError) << "Tried to use unset setting " << name << "!"; \
LOG(LogError) << "Tried to use unset setting " << name; \
} \
return mapName[name].second; \
} \
type Settings::getDefaultFunction(const std::string& name) \
{ \
if (mapName.find(name) == mapName.cend()) { \
LOG(LogError) << "Tried to use unset setting " << name << "!"; \
LOG(LogError) << "Tried to use unset setting " << name; \
} \
return mapName[name].first; \
} \

View file

@ -117,13 +117,13 @@ void TextureDataManager::load(std::shared_ptr<TextureData> tex, bool block)
if (settingVRAM < 80) {
LOG(LogWarning) << "MaxVRAM is too low at " << settingVRAM <<
" MiB, setting it to the minimum allowed value of 80 MiB.";
" MiB, setting it to the minimum allowed value of 80 MiB";
Settings::getInstance()->setInt("MaxVRAM", 80);
settingVRAM = 80;
}
else if (settingVRAM > 1024) {
LOG(LogWarning) << "MaxVRAM is too high at " << settingVRAM <<
" MiB, setting it to the maximum allowed value of 1024 MiB.";
" MiB, setting it to the maximum allowed value of 1024 MiB";
Settings::getInstance()->setInt("MaxVRAM", 1024);
settingVRAM = 1024;
}