Use flags to specify wanted data in gamecache.

This commit is contained in:
Unknown W. Brackets committed 2014-06-21 18:24:21 -07:00
1 parent 0416f0d918
commit a0340debd6
6 files changed
+29 -28

No files matched your search

+2 -2
View File
@@ -173,7 +173,7 @@ private:
};
void GameButton::Draw(UIContext &dc) {
GameInfo *ginfo = g_gameInfoCache.GetInfo(gamePath_, false);
GameInfo *ginfo = g_gameInfoCache.GetInfo(gamePath_, 0);
Texture *texture = 0;
u32 color = 0, shadowColor = 0;
@@ -936,7 +936,7 @@ bool MainScreen::DrawBackgroundFor(UIContext &dc, const std::string &gamePath, f
GameInfo *ginfo = 0;
if (!gamePath.empty()) {
ginfo = g_gameInfoCache.GetInfo(gamePath, true);
ginfo = g_gameInfoCache.GetInfo(gamePath, GAMEINFO_WANTBG);
// Loading texture data may bind a texture.
dc.RebindTexture();