| 194 | //----------------------------------------------------------------------------- |
| 195 | |
| 196 | bool 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 | } |
no test coverage detected