Merge pull request #772 from LukeUsher/fix-logo-images

Fix an issue where xbe logo images failed to load
This commit is contained in:
PatrickvL 2017-10-21 00:26:05 +02:00 committed by GitHub
commit 74e61b6b99
1 changed files with 2 additions and 2 deletions

View File

@ -1332,9 +1332,9 @@ typedef struct {
void WndMain::LoadGameLogo()
{
// Export Game Logo bitmap (XTIMAG or XSIMAG)
uint8 *pSection = (uint8 *)m_Xbe->FindSection("$$XTIMAG"); // Check for XTIMAGE
uint8 *pSection = (uint8 *)m_Xbe->FindSection("$$XTIMAGE"); // Check for XTIMAGE
if (!pSection) {
pSection = (uint8 *)m_Xbe->FindSection("$$XSIMAG"); // if XTIMAGE isn't present, check for XSIMAGE (smaller)
pSection = (uint8 *)m_Xbe->FindSection("$$XSIMAGE"); // if XTIMAGE isn't present, check for XSIMAGE (smaller)
if (!pSection) {
return;
}