* Stops the state machine and the game is shut down. */
| 318 | * Stops the state machine and the game is shut down. |
| 319 | */ |
| 320 | void Game::quit() |
| 321 | { |
| 322 | // Always save ironman |
| 323 | if (_save != 0 && _save->isIronman() && !_save->getName().empty()) |
| 324 | { |
| 325 | std::string filename = CrossPlatform::sanitizeFilename(Language::wstrToFs(_save->getName())) + ".sav"; |
| 326 | _save->save(filename); |
| 327 | } |
| 328 | _quit = true; |
| 329 | } |
| 330 | |
| 331 | /** |
| 332 | * Changes the audio volume of the music and |
no test coverage detected