mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Some minor log output changes.
This commit is contained in:
parent
ec5f1c1b5f
commit
969be161d9
|
@ -303,7 +303,7 @@ void saveMap(pugi::xml_document& doc, std::map<K, V>& map, const std::string& ty
|
||||||
|
|
||||||
void Settings::saveFile()
|
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() +
|
const std::string path = Utils::FileSystem::getHomePath() +
|
||||||
"/.emulationstation/es_settings.cfg";
|
"/.emulationstation/es_settings.cfg";
|
||||||
|
|
||||||
|
@ -344,7 +344,7 @@ void Settings::loadFile()
|
||||||
pugi::xml_parse_result result = doc.load_file(path.c_str());
|
pugi::xml_parse_result result = doc.load_file(path.c_str());
|
||||||
#endif
|
#endif
|
||||||
if (!result) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -364,14 +364,14 @@ void Settings::loadFile()
|
||||||
type Settings::getFunction(const std::string& name) \
|
type Settings::getFunction(const std::string& name) \
|
||||||
{ \
|
{ \
|
||||||
if (mapName.find(name) == mapName.cend()) { \
|
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; \
|
return mapName[name].second; \
|
||||||
} \
|
} \
|
||||||
type Settings::getDefaultFunction(const std::string& name) \
|
type Settings::getDefaultFunction(const std::string& name) \
|
||||||
{ \
|
{ \
|
||||||
if (mapName.find(name) == mapName.cend()) { \
|
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; \
|
return mapName[name].first; \
|
||||||
} \
|
} \
|
||||||
|
|
|
@ -117,13 +117,13 @@ void TextureDataManager::load(std::shared_ptr<TextureData> tex, bool block)
|
||||||
|
|
||||||
if (settingVRAM < 80) {
|
if (settingVRAM < 80) {
|
||||||
LOG(LogWarning) << "MaxVRAM is too low at " << settingVRAM <<
|
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);
|
Settings::getInstance()->setInt("MaxVRAM", 80);
|
||||||
settingVRAM = 80;
|
settingVRAM = 80;
|
||||||
}
|
}
|
||||||
else if (settingVRAM > 1024) {
|
else if (settingVRAM > 1024) {
|
||||||
LOG(LogWarning) << "MaxVRAM is too high at " << settingVRAM <<
|
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);
|
Settings::getInstance()->setInt("MaxVRAM", 1024);
|
||||||
settingVRAM = 1024;
|
settingVRAM = 1024;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue