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
+9
View File
@@ -102,6 +102,8 @@ void BGAnimation::LoadFromAniDir( const RString &_sAniDir )
RString sPathToIni = sAniDir + "BGAnimation.ini";
if( DoesFileExist(sPathToIni) )
{
if( PREFSMAN->m_bQuirksMode )
{
// This is a 3.9-style BGAnimation (using .ini)
IniFile ini;
@@ -117,6 +119,13 @@ void BGAnimation::LoadFromAniDir( const RString &_sAniDir )
LoadFromNode( pBGAnimation );
}
else
{
XNode dummy( "BGAnimation" );
XNode *pBG = &dummy;
LoadFromNode( pBG );
}
}
else
{
// This is an 3.0 and before-style BGAnimation (not using .ini)