Fix unknown.png issues properly this time :P

This commit is contained in:
Henrik Rydgard 2013-06-23 17:57:24 +02:00
parent 5d1fff328f
commit 3216410ac8

View File

@ -184,6 +184,7 @@ public:
} else {
// Read standard icon
size_t sz;
INFO_LOG(HLE, "Loading unknown.png because a PBP was missing an icon");
uint8_t *contents = VFSReadFile("unknown.png", &sz);
if (contents) {
lock_guard lock(info_->lock);
@ -210,8 +211,9 @@ public:
{
// Read standard icon
size_t sz;
uint8_t *contents = VFSReadFile("assets/unknown.png", &sz);
{
uint8_t *contents = VFSReadFile("unknown.png", &sz);
INFO_LOG(HLE, "Loading unknown.png because there was an ELF");
if (contents) {
lock_guard lock(info_->lock);
info_->iconTextureData = std::string((const char *)contents, sz);
}