mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Avoid an assert for empty icon files in the store (should look into this more)
This commit is contained in:
parent
f13a07f19b
commit
4a416174b1
1 changed files with 5 additions and 1 deletions
|
@ -62,7 +62,11 @@ public:
|
|||
if (download.ResultCode() == 200) {
|
||||
std::string data;
|
||||
download.buffer().TakeAll(&data);
|
||||
g_iconCache.InsertIcon(path_, IconFormat::PNG, std::move(data));
|
||||
if (!data.empty()) {
|
||||
g_iconCache.InsertIcon(path_, IconFormat::PNG, std::move(data));
|
||||
} else {
|
||||
g_iconCache.Cancel(path_);
|
||||
}
|
||||
} else {
|
||||
g_iconCache.Cancel(path_);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue