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