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