mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-25 12:05:53 +00:00
ULTIMA4: Allow for loading saves in cities
This commit is contained in:
parent
05bc8c295f
commit
8b1535cbdd
@ -202,6 +202,10 @@ void Ultima4Engine::setToJourneyOnwards() {
|
||||
assert(_saveSlotToLoad);
|
||||
}
|
||||
|
||||
bool Ultima4Engine::canLoadGameStateCurrently(bool isAutosave) {
|
||||
return g_game != nullptr && g_context != nullptr && eventHandler->getController() == g_game;
|
||||
}
|
||||
|
||||
bool Ultima4Engine::canSaveGameStateCurrently(bool isAutosave) {
|
||||
return g_game != nullptr && g_context != nullptr && eventHandler->getController() == g_game
|
||||
&& (g_context->_location->_context & CTX_CAN_SAVE_GAME);
|
||||
|
@ -98,9 +98,7 @@ public:
|
||||
/**
|
||||
* Returns true if a savegame can be loaded
|
||||
*/
|
||||
bool canLoadGameStateCurrently(bool isAutosave = false) override {
|
||||
return canSaveGameStateCurrently(isAutosave);
|
||||
}
|
||||
bool canLoadGameStateCurrently(bool isAutosave = false) override;
|
||||
|
||||
/**
|
||||
* Returns true if the game can be saved
|
||||
|
Loading…
x
Reference in New Issue
Block a user