mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 16:53:40 +01:00
UI: Use comparison screenshot as frame dump icon.
This makes it easier to tell a big list apart.
This commit is contained in:
1 parent
a45eeb56ed
commit
d7e71543f7
1 file changed
+16
@@ -506,6 +506,22 @@ handleELF:
|
||||
break;
|
||||
}
|
||||
|
||||
case IdentifiedFileType::PPSSPP_GE_DUMP:
|
||||
{
|
||||
std::lock_guard<std::mutex> guard(info_->lock);
|
||||
|
||||
// Let's use the comparison screenshot as an icon, if it exists.
|
||||
Path screenshotPath = gamePath_.WithReplacedExtension(".ppdmp", ".png");
|
||||
if (File::Exists(screenshotPath)) {
|
||||
if (File::ReadFileToString(false, screenshotPath, info_->icon.data)) {
|
||||
info_->icon.dataLoaded = true;
|
||||
} else {
|
||||
ERROR_LOG(G3D, "Error loading screenshot data: '%s'", screenshotPath.c_str());
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case IdentifiedFileType::PSP_DISC_DIRECTORY:
|
||||
{
|
||||
info_->fileType = IdentifiedFileType::PSP_ISO;
|
||||
|
||||
Reference in new issue
Block a user