MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / SaveFile

Method SaveFile

Dependencies/tinyxml2/src/tinyxml2.cpp:2252–2268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2250
2251
2252XMLError XMLDocument::SaveFile( const char* filename, bool compact )
2253{
2254 if ( !filename ) {
2255 TIXMLASSERT( false );
2256 SetError( XML_ERROR_FILE_COULD_NOT_BE_OPENED, 0, "filename=<null>" );
2257 return _errorID;
2258 }
2259
2260 FILE* fp = callfopen( filename, "w" );
2261 if ( !fp ) {
2262 SetError( XML_ERROR_FILE_COULD_NOT_BE_OPENED, 0, "filename=%s", filename );
2263 return _errorID;
2264 }
2265 SaveFile(fp, compact);
2266 fclose( fp );
2267 return _errorID;
2268}
2269
2270
2271XMLError XMLDocument::SaveFile( FILE* fp, bool compact )

Callers 2

SaveMethod · 0.80
SaveSceneToDiskMethod · 0.80

Calls 2

callfopenFunction · 0.85
ClearErrorFunction · 0.85

Tested by

no test coverage detected