IniFile cleanup

This commit is contained in:
Glenn Maynard
2004-05-23 02:27:51 +00:00
parent a87aef9c3b
commit c0adadd3a5
21 changed files with 180 additions and 247 deletions
+2 -3
View File
@@ -34,9 +34,8 @@ Actor* LoadFromActorFile( CString sIniPath, CString sLayer )
{
// TODO: Check for recursive loading
IniFile ini;
ini.SetPath( sIniPath );
if( !ini.ReadFile() )
RageException::Throw( "%s", ini.error.c_str() );
if( !ini.ReadFile( sIniPath ) )
RageException::Throw( "%s", ini.GetError().c_str() );
if( !ini.GetKey(sLayer) )
RageException::Throw( "The file '%s' doesn't have layer '%s'.", sIniPath.c_str(), sLayer.c_str() );