MCPcopy Create free account
hub / github.com/Norbyte/bg3se / LoadFile

Method LoadFile

CoreLib/tinyxml2.cpp:2312–2329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2310
2311
2312XMLError XMLDocument::LoadFile( const char* filename )
2313{
2314 if ( !filename ) {
2315 TIXMLASSERT( false );
2316 SetError( XML_ERROR_FILE_COULD_NOT_BE_OPENED, 0, "filename=<null>" );
2317 return _errorID;
2318 }
2319
2320 Clear();
2321 FILE* fp = callfopen( filename, "rb" );
2322 if ( !fp ) {
2323 SetError( XML_ERROR_FILE_NOT_FOUND, 0, "filename=%s", filename );
2324 return _errorID;
2325 }
2326 LoadFile( fp );
2327 fclose( fp );
2328 return _errorID;
2329}
2330
2331XMLError XMLDocument::LoadFile( FILE* fp )
2332{

Callers

nothing calls this directly

Calls 2

LoadFileFunction · 0.85
callfopenFunction · 0.70

Tested by

no test coverage detected