mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Show bg and icon on pause screen.
This commit is contained in:
1 parent
3301fd5119
commit
0eda1a8fe5
4 files changed
+31
-2
No files matched your search
@@ -77,6 +77,11 @@ GameInfo *GameInfoCache::GetInfo(const std::string &gamePath, bool wantBG) {
|
||||
auto iter = info_.find(gamePath);
|
||||
if (iter != info_.end()) {
|
||||
GameInfo *info = iter->second;
|
||||
if (!info->wantBG && wantBG) {
|
||||
// Need to start over.
|
||||
delete info;
|
||||
goto again;
|
||||
}
|
||||
if (info->iconTextureData.size()) {
|
||||
info->iconTexture = new Texture();
|
||||
// TODO: We could actually do the PNG decoding as well on the async thread.
|
||||
@@ -97,6 +102,8 @@ GameInfo *GameInfoCache::GetInfo(const std::string &gamePath, bool wantBG) {
|
||||
return iter->second;
|
||||
}
|
||||
|
||||
again:
|
||||
|
||||
// return info;
|
||||
|
||||
// TODO: Everything below here should be asynchronous and run on a thread,
|
||||
@@ -116,7 +123,7 @@ GameInfo *GameInfoCache::GetInfo(const std::string &gamePath, bool wantBG) {
|
||||
ISOFileSystem umd(&handles, bd);
|
||||
|
||||
GameInfo *info = new GameInfo();
|
||||
|
||||
info->wantBG = wantBG;
|
||||
|
||||
// Alright, let's fetch the PARAM.SFO.
|
||||
std::string paramSFOcontents;
|
||||
|
||||
Reference in new issue
Block a user