mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
TOON: Fix return value of saveGameState/loadGameState.
Formerly both returned an error, when the saving/loading succeeded, and success when it didn't. This fixes an incorrect dialog appearing when saving or loading via the GMM.
This commit is contained in:
parent
31aec8c581
commit
e474f695df
@ -316,12 +316,11 @@ public:
|
||||
}
|
||||
|
||||
Common::Error saveGameState(int slot, const Common::String &desc) {
|
||||
|
||||
return (saveGame(slot, desc) ? Common::kWritingFailed : Common::kNoError);
|
||||
return (saveGame(slot, desc) ? Common::kNoError : Common::kWritingFailed);
|
||||
}
|
||||
|
||||
Common::Error loadGameState(int slot) {
|
||||
return (loadGame(slot) ? Common::kReadingFailed : Common::kNoError);
|
||||
return (loadGame(slot) ? Common::kNoError : Common::kReadingFailed);
|
||||
}
|
||||
|
||||
bool hasFeature(EngineFeature f) const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user