no more Wx windows saying " could not find xxxxxx.png "

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1054 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
daco65 2008-11-03 01:52:03 +00:00
parent 901577489f
commit 22153edc59
1 changed files with 17 additions and 2 deletions

View File

@ -456,7 +456,22 @@ void CGameListCtrl::ScanForISOs(bool Loadcache)
else
PanicAlert("Invalid ISO file %s", ISOFile.GetFileName().c_str());*/
//TODO: stick the banners in 1 file ;_;
ISOFile.m_Image.LoadFile("GameIni\\" + ISOFile.GetUniqueID() + ".png",wxBITMAP_TYPE_PNG);
strcpy(temp,"Gameini\\");
strcpy(&temp[8],ISOFile.GetUniqueID().c_str());
strcpy(&temp[14],".png");
if(fopen(temp,"rb"))
{
ISOFile.m_Image.LoadFile(temp,wxBITMAP_TYPE_PNG);
}
else
{
PanicAlert("Could not find banner for %s",ISOFile.GetName().c_str());
//remove any data left of the image of the game before the current. or you'll get the same
//banner twice :P
ISOFile.m_Image.Destroy();
}
m_ISOFiles.push_back(ISOFile);
}
break;