mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 01:07:22 +00:00
MOHAWK: Further limit where Myst can be saved
svn-id: r54812
This commit is contained in:
parent
9a0c20a45f
commit
d06a355341
@ -1079,4 +1079,24 @@ Common::Error MohawkEngine_Myst::saveGameState(int slot, const char *desc) {
|
||||
return _saveLoad->saveGame(Common::String(desc)) ? Common::kNoError : Common::kUnknownError;
|
||||
}
|
||||
|
||||
bool MohawkEngine_Myst::canLoadGameStateCurrently() {
|
||||
// No loading in the demo/makingof
|
||||
return !(getFeatures() & GF_DEMO) && getGameType() != GType_MAKINGOF;
|
||||
}
|
||||
|
||||
bool MohawkEngine_Myst::canSaveGameStateCurrently() {
|
||||
// There's a limited number of stacks the game can save in
|
||||
switch (_curStack) {
|
||||
case kChannelwoodStack:
|
||||
case kDniStack:
|
||||
case kMechanicalStack:
|
||||
case kMystStack:
|
||||
case kSeleniticStack:
|
||||
case kStoneshipStack:
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
} // End of namespace Mohawk
|
||||
|
@ -191,8 +191,8 @@ public:
|
||||
|
||||
GUI::Debugger *getDebugger() { return _console; }
|
||||
|
||||
bool canLoadGameStateCurrently() { return !(getFeatures() & GF_DEMO); }
|
||||
bool canSaveGameStateCurrently() { return !(getFeatures() & GF_DEMO); }
|
||||
bool canLoadGameStateCurrently();
|
||||
bool canSaveGameStateCurrently();
|
||||
Common::Error loadGameState(int slot);
|
||||
Common::Error saveGameState(int slot, const char *desc);
|
||||
bool hasFeature(EngineFeature f) const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user