fix Ini saving
This commit is contained in:
@@ -88,10 +88,12 @@ bool IniFile::WriteFile( RageFileBasic &f ) const
|
|||||||
|
|
||||||
FOREACH_CONST_Attr( pKey, pAttr )
|
FOREACH_CONST_Attr( pKey, pAttr )
|
||||||
{
|
{
|
||||||
f.PutLine( ssprintf("%s=%s", pAttr->m_sName.c_str(), pAttr->m_sValue.c_str()) );
|
if( f.PutLine( ssprintf("%s=%s", pAttr->m_sName.c_str(), pAttr->m_sValue.c_str()) ) == -1 )
|
||||||
|
{
|
||||||
m_sError = f.GetError();
|
m_sError = f.GetError();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if( f.PutLine( "" ) == -1 )
|
if( f.PutLine( "" ) == -1 )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user