mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 07:39:45 -06:00
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:
@ -456,7 +456,22 @@ void CGameListCtrl::ScanForISOs(bool Loadcache)
|
|||||||
else
|
else
|
||||||
PanicAlert("Invalid ISO file %s", ISOFile.GetFileName().c_str());*/
|
PanicAlert("Invalid ISO file %s", ISOFile.GetFileName().c_str());*/
|
||||||
//TODO: stick the banners in 1 file ;_;
|
//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);
|
m_ISOFiles.push_back(ISOFile);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user