ULTIMA8: Cleanup shutdown methods

This commit is contained in:
Matthew Jimenez 2023-02-02 18:21:20 -06:00
parent f0bd3fb39f
commit 46118c2100
2 changed files with 0 additions and 21 deletions

View File

@ -534,10 +534,6 @@ Common::Error Ultima8Engine::startupGame() {
}
void Ultima8Engine::shutdown() {
shutdownGame(false);
}
void Ultima8Engine::shutdownGame(bool reloading) {
debug(MM_INFO, "-- Shutting down Game -- ");
// Save config here....
@ -588,22 +584,6 @@ void Ultima8Engine::shutdownGame(bool reloading) {
_gameInfo = nullptr;
debug(MM_INFO, "-- Game Shutdown -- ");
if (reloading) {
Rect dims;
_screen->GetSurfaceDims(dims);
debugN(MM_INFO, "Creating Desktop...\n");
_desktopGump = new DesktopGump(0, 0, dims.width(), dims.height());
_desktopGump->InitGump(0);
_desktopGump->MakeFocus();
if (GAME_IS_U8) {
debugN(MM_INFO, "Creating Inverter...\n");
_inverterGump = new InverterGump(0, 0, dims.width(), dims.height());
_inverterGump->InitGump(0);
}
}
}
//

View File

@ -196,7 +196,6 @@ public:
bool setupGame();
Common::Error startupGame();
void shutdownGame(bool reloading = true);
void changeVideoMode(int width, int height);