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

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

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_);

BIN
assets/rargray.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB