| 407 | } |
| 408 | |
| 409 | void Player::Exit() { |
| 410 | if (player_config.settings_autosave.Get()) { |
| 411 | Scene_Settings::SaveConfig(true); |
| 412 | } |
| 413 | |
| 414 | Graphics::UpdateSceneCallback(); |
| 415 | #ifdef EMSCRIPTEN |
| 416 | BitmapRef surface = DisplayUi->GetDisplaySurface(); |
| 417 | std::string message = "It's now safe to turn off\n your browser."; |
| 418 | DisplayUi->CleanDisplay(); |
| 419 | Text::Draw(*surface, 84, DisplayUi->GetHeight() / 2 - 16, *Font::DefaultBitmapFont(), Color(221, 123, 64, 255), message); |
| 420 | DisplayUi->UpdateDisplay(); |
| 421 | |
| 422 | auto ret = FileFinder::Root().OpenOutputStream("/tmp/message.png", std::ios_base::binary | std::ios_base::out | std::ios_base::trunc); |
| 423 | if (ret) Output::TakeScreenshot(ret); |
| 424 | #endif |
| 425 | Player::ResetGameObjects(); |
| 426 | Font::Dispose(); |
| 427 | Graphics::Quit(); |
| 428 | Output::Quit(); |
| 429 | FileFinder::Quit(); |
| 430 | DisplayUi.reset(); |
| 431 | } |
| 432 | |
| 433 | Game_Config Player::ParseCommandLine() { |
| 434 | debug_flag = false; |
nothing calls this directly
no test coverage detected