mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Display .7z files in file listings. Can't decompress them though.
This commit is contained in:
1 parent
d24abb3af0
commit
e6334dd9d8
8 files changed
+29
-3
No files matched your search
@@ -445,6 +445,21 @@ handleELF:
|
||||
}
|
||||
break;
|
||||
|
||||
case FILETYPE_ARCHIVE_7Z:
|
||||
info_->paramSFOLoaded = true;
|
||||
{
|
||||
// Read standard icon
|
||||
size_t sz;
|
||||
uint8_t *contents = VFSReadFile("7z.png", &sz);
|
||||
if (contents) {
|
||||
lock_guard lock(info_->lock);
|
||||
info_->iconTextureData = std::string((const char *)contents, sz);
|
||||
info_->iconDataLoaded = true;
|
||||
}
|
||||
delete[] contents;
|
||||
}
|
||||
break;
|
||||
|
||||
case FILETYPE_NORMAL_DIRECTORY:
|
||||
default:
|
||||
info_->paramSFOLoaded = true;
|
||||
|
||||
Reference in new issue
Block a user