Added several ifdef PSP for different resolution image to merge the graphics folders.

This commit is contained in:
valfieri
2019-09-11 18:39:42 +02:00
parent ba918b27ee
commit 6fd6f9061c
13 changed files with 105 additions and 5 deletions

View File

@@ -1316,6 +1316,22 @@ void WGuiAward::Underlay()
char buf[1024];
JQuadPtr trophy;
#if defined (PSP)
string n = id ? Options::getName(id) : textId;
if (n.size())
{
sprintf(buf, "psptrophy_%s.png", n.c_str()); //Trophy specific to the award
trophy = WResourceManager::Instance()->RetrieveTempQuad(buf); //Themed version...
}
if (!trophy && id >= Options::SET_UNLOCKS)
{
trophy = WResourceManager::Instance()->RetrieveTempQuad("psptrophy_set.png"); //TODO FIXME: Should look in set dir too.
}
if (!trophy.get()) //Fallback to basic trophy image.
trophy = WResourceManager::Instance()->RetrieveTempQuad("psptrophy.png");
#else
string n = id ? Options::getName(id) : textId;
if (n.size())
{
@@ -1329,7 +1345,8 @@ void WGuiAward::Underlay()
}
if (!trophy.get()) //Fallback to basic trophy image.
trophy = WResourceManager::Instance()->RetrieveTempQuad("trophy.png");
trophy = WResourceManager::Instance()->RetrieveTempQuad("trophy.png");
#endif
if (trophy.get())
{