Some log level changes.

This commit is contained in:
Henrik Rydgård 2018-02-26 09:26:07 +01:00
parent 373e53fa66
commit eb73cc23cd
3 changed files with 7 additions and 8 deletions

View File

@ -241,10 +241,9 @@ bool CreateDir(const std::string &path)
bool CreateFullPath(const std::string &fullPath)
{
int panicCounter = 100;
DEBUG_LOG(COMMON, "CreateFullPath: path %s", fullPath.c_str());
VERBOSE_LOG(COMMON, "CreateFullPath: path %s", fullPath.c_str());
if (File::Exists(fullPath))
{
if (File::Exists(fullPath)) {
DEBUG_LOG(COMMON, "CreateFullPath: path exists %s", fullPath.c_str());
return true;
}

View File

@ -45,7 +45,7 @@ PBPReader::PBPReader(FileLoader *fileLoader) : file_(nullptr), header_(), isELF_
return;
}
DEBUG_LOG(LOADER, "Loading PBP, version = %08x", header_.version);
VERBOSE_LOG(LOADER, "Loading PBP, version = %08x", header_.version);
file_ = fileLoader;
}

View File

@ -460,13 +460,13 @@ handleELF:
std::string screenshot_jpg = GetSysDirectory(DIRECTORY_SCREENSHOT) + info_->id + "_00000.jpg";
std::string screenshot_png = GetSysDirectory(DIRECTORY_SCREENSHOT) + info_->id + "_00000.png";
// Try using png/jpg screenshots first
if (File::Exists(screenshot_png))
if (File::Exists(screenshot_png)) {
readFileToString(false, screenshot_png.c_str(), info_->icon.data);
else if (File::Exists(screenshot_jpg))
} else if (File::Exists(screenshot_jpg)) {
readFileToString(false, screenshot_jpg.c_str(), info_->icon.data);
else {
} else {
// Read standard icon
DEBUG_LOG(LOADER, "Loading unknown.png because there was an ELF");
VERBOSE_LOG(LOADER, "Loading unknown.png because there was an ELF");
ReadVFSToString("unknown.png", &info_->icon.data, &info_->lock);
}
info_->icon.dataLoaded = true;