MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / save

Method save

Engine/source/module/moduleDefinition.cpp:197–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195//-----------------------------------------------------------------------------
196
197bool ModuleDefinition::save( void )
198{
199 // Does the module have a file-path yet?
200 if (mModuleFilePath == StringTable->EmptyString())
201 {
202 // No, so warn.
203 Con::warnf("Save() - Cannot save module definition '%s' as it does not have a file-path.", mModuleId );
204 return false;
205 }
206
207 // Save the module file.
208 Taml taml;
209 return taml.write( this, mModuleFilePath );
210}

Calls 3

EmptyStringMethod · 0.80
warnfFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected