revert loading of .inis. Don't encourage use of .inis when .xml will do.

This commit is contained in:
Chris Danford
2005-04-02 00:24:31 +00:00
parent 35251bb25b
commit 3d92129181
3 changed files with 3 additions and 22 deletions
+3 -13
View File
@@ -106,6 +106,8 @@ void BGAnimation::AddLayersFromAniDir( const CString &_sAniDir, const IniFile& i
void BGAnimation::LoadFromAniDir( const CString &_sAniDir, bool bGeneric )
{
Unload();
if( _sAniDir.empty() )
return;
@@ -113,21 +115,9 @@ void BGAnimation::LoadFromAniDir( const CString &_sAniDir, bool bGeneric )
if( sAniDir.Right(1) != "/" )
sAniDir += "/";
CString sPathToIni = sAniDir + "BGAnimation.ini";
LoadFromIni( sAniDir, sPathToIni, bGeneric );
}
void BGAnimation::LoadFromIni( const CString &_sDir, const CString &sPathToIni, bool bGeneric )
{
Unload();
CString sAniDir = _sDir;
if( sAniDir.Right(1) != "/" )
sAniDir += "/";
ASSERT_M( IsADirectory(sAniDir), sAniDir + " isn't a directory" );
CString sPathToIni = sAniDir + "BGAnimation.ini";
if( DoesFileExist(sPathToIni) )
{