Restore quirks mode check for .ini files.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user