mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 12:39:56 +00:00
ULTIMA8: Cleanup shutdown methods
This commit is contained in:
parent
f0bd3fb39f
commit
46118c2100
@ -534,10 +534,6 @@ Common::Error Ultima8Engine::startupGame() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Ultima8Engine::shutdown() {
|
void Ultima8Engine::shutdown() {
|
||||||
shutdownGame(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Ultima8Engine::shutdownGame(bool reloading) {
|
|
||||||
debug(MM_INFO, "-- Shutting down Game -- ");
|
debug(MM_INFO, "-- Shutting down Game -- ");
|
||||||
|
|
||||||
// Save config here....
|
// Save config here....
|
||||||
@ -588,22 +584,6 @@ void Ultima8Engine::shutdownGame(bool reloading) {
|
|||||||
_gameInfo = nullptr;
|
_gameInfo = nullptr;
|
||||||
|
|
||||||
debug(MM_INFO, "-- Game Shutdown -- ");
|
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -196,7 +196,6 @@ public:
|
|||||||
|
|
||||||
bool setupGame();
|
bool setupGame();
|
||||||
Common::Error startupGame();
|
Common::Error startupGame();
|
||||||
void shutdownGame(bool reloading = true);
|
|
||||||
|
|
||||||
void changeVideoMode(int width, int height);
|
void changeVideoMode(int width, int height);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user