XNode::LoadFromFile(RageFileBasic)
This commit is contained in:
@@ -1009,6 +1009,12 @@ bool XNode::LoadFromFile( const CString &sFile, PARSEINFO *pi )
|
|||||||
LOG->Warn("Couldn't open %s for reading: %s", sFile.c_str(), f.GetError().c_str() );
|
LOG->Warn("Couldn't open %s for reading: %s", sFile.c_str(), f.GetError().c_str() );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return LoadFromFile( f, pi );
|
||||||
|
}
|
||||||
|
|
||||||
|
bool XNode::LoadFromFile( RageFileBasic &f, PARSEINFO *pi )
|
||||||
|
{
|
||||||
CString s;
|
CString s;
|
||||||
if( f.Read( s ) == -1 )
|
if( f.Read( s ) == -1 )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -174,6 +174,7 @@ struct XNode
|
|||||||
bool GetXML( RageFileBasic &f, DISP_OPT *opt = &optDefault );
|
bool GetXML( RageFileBasic &f, DISP_OPT *opt = &optDefault );
|
||||||
|
|
||||||
bool LoadFromFile( const CString &sFile, PARSEINFO *pi = &piDefault );
|
bool LoadFromFile( const CString &sFile, PARSEINFO *pi = &piDefault );
|
||||||
|
bool LoadFromFile( RageFileBasic &f, PARSEINFO *pi = &piDefault );
|
||||||
bool SaveToFile( const CString &sFile, DISP_OPT *opt = &optDefault );
|
bool SaveToFile( const CString &sFile, DISP_OPT *opt = &optDefault );
|
||||||
bool SaveToFile( RageFileBasic &f, DISP_OPT *opt = &optDefault );
|
bool SaveToFile( RageFileBasic &f, DISP_OPT *opt = &optDefault );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user