Disallow configs and cheats for GE dumps, don't try to get icons for dumps loaded from HTTP

This commit is contained in:
Henrik Rydgård committed 2025-10-16 15:15:03 +02:00
1 parent 5aa0856280
commit 8aa1987d77
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -711,7 +711,7 @@ handleELF:
if (flags_ & GameInfoFlags::ICON) {
Path screenshotPath = gamePath_.WithReplacedExtension(".ppdmp", ".png");
// Let's use the comparison screenshot as an icon, if it exists.
if (ReadLocalFileToString(screenshotPath, &info_->icon.data, &info_->lock)) {
if (screenshotPath.IsLocalType() && ReadLocalFileToString(screenshotPath, &info_->icon.data, &info_->lock)) {
info_->icon.dataLoaded = true;
}
}