Add grayscale RAR icon (to sort of indicate that we can't unpack them)

This commit is contained in:
Henrik Rydgård committed 2013-12-11 15:24:29 +01:00
1 parent 42f5bcb263
commit 618e5080ab
2 files changed
+15 -1

No files matched your search

+15 -1
View File
@@ -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_);