mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-25 23:33:41 +01:00
Add grayscale RAR icon (to sort of indicate that we can't unpack them)
This commit is contained in:
1 parent
42f5bcb263
commit
618e5080ab
2 files changed
+15
-1
No files matched your search
+15
-1
@@ -391,7 +391,21 @@ handleELF:
|
||||
break;
|
||||
|
||||
case FILETYPE_ARCHIVE_RAR:
|
||||
// TODO: Set archive icon
|
||||
info_->title = getFilename(filename);
|
||||
info_->paramSFOLoaded = true;
|
||||
info_->wantBG = false;
|
||||
{
|
||||
// Read standard icon
|
||||
size_t sz;
|
||||
uint8_t *contents = VFSReadFile("rargray.png", &sz);
|
||||
if (contents) {
|
||||
lock_guard lock(info_->lock);
|
||||
info_->iconTextureData = std::string((const char *)contents, sz);
|
||||
}
|
||||
delete [] contents;
|
||||
}
|
||||
break;
|
||||
|
||||
case FILETYPE_NORMAL_DIRECTORY:
|
||||
default:
|
||||
info_->title = getFilename(gamePath_);
|
||||
|
||||
Reference in new issue
Block a user