Restore quirks mode check for .ini files.

This commit is contained in:
Jason Felds
2011-05-20 22:43:54 -04:00
parent 78043121a2
commit 5371303a1d
+18 -9
View File
@@ -103,18 +103,27 @@ void BGAnimation::LoadFromAniDir( const RString &_sAniDir )
if( DoesFileExist(sPathToIni) ) if( DoesFileExist(sPathToIni) )
{ {
// This is a 3.9-style BGAnimation (using .ini) if( PREFSMAN->m_bQuirksMode )
IniFile ini; {
ini.ReadFile( sPathToIni ); // This is a 3.9-style BGAnimation (using .ini)
IniFile ini;
ini.ReadFile( sPathToIni );
AddLayersFromAniDir( sAniDir, &ini ); // TODO: Check for circular load AddLayersFromAniDir( sAniDir, &ini ); // TODO: Check for circular load
XNode* pBGAnimation = ini.GetChild( "BGAnimation" ); XNode* pBGAnimation = ini.GetChild( "BGAnimation" );
XNode dummy( "BGAnimation" ); XNode dummy( "BGAnimation" );
if( pBGAnimation == NULL ) if( pBGAnimation == NULL )
pBGAnimation = &dummy; pBGAnimation = &dummy;
LoadFromNode( pBGAnimation ); LoadFromNode( pBGAnimation );
}
else
{
XNode dummy( "BGAnimation" );
XNode *pBG = &dummy;
LoadFromNode( pBG );
}
} }
else else
{ {