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

Method save

Engine/source/module/moduleDefinition.cpp:196–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Calls 3

warnfFunction · 0.85
EmptyStringMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected