| 215 | } |
| 216 | |
| 217 | Engine::~Engine() |
| 218 | { |
| 219 | try |
| 220 | { |
| 221 | this->clean(); |
| 222 | } |
| 223 | catch (Exception& e) |
| 224 | { |
| 225 | Debug::Log->error("Failed to properly clean the engine :\n{}", e.what()); |
| 226 | } |
| 227 | this->purge(); |
| 228 | Debug::Log->debug("Engine has been correctly cleaned"); |
| 229 | } |
| 230 | |
| 231 | void Engine::init() |
| 232 | { |