MOHAWK: Riven: Improve save load error handling

A GUI error message is now displayed if an error occurs when loading a
save.
This commit is contained in:
Bastien Bouclet 2017-07-12 22:00:33 +02:00
parent e5ab09d7e5
commit c3bbae041a
3 changed files with 23 additions and 9 deletions

View file

@ -180,9 +180,9 @@ Common::Error RivenSaveLoad::loadGame(const int slot) {
delete vers;
if ((saveGameVersion == kCDSaveGameVersion && (_vm->getFeatures() & GF_DVD))
|| (saveGameVersion == kDVDSaveGameVersion && !(_vm->getFeatures() & GF_DVD))) {
warning("Incompatible saved game versions. No support for this yet");
warning("Unable to load: Saved game created using an incompatible game version - CD vs DVD");
delete mhk;
return Common::Error(Common::kUnknownError, "Incompatible save version");
return Common::Error(Common::kUnknownError, "Saved game created using an incompatible game version - CD vs DVD");
}
// Now, we'll read in the variable values.