diff options
author | Ben Castricum | 2016-12-06 09:25:00 +0100 |
---|---|---|
committer | Ben Castricum | 2016-12-06 09:38:25 +0100 |
commit | 1cf3f50b7429483409e16994a21c040235abd261 (patch) | |
tree | b9312aa2fe7536be282f9911468386b7f4440236 /engines/mortevielle | |
parent | eb7ffb1e2cce1c77bebc156563d6d46d223b3885 (diff) | |
download | scummvm-rg350-1cf3f50b7429483409e16994a21c040235abd261.tar.gz scummvm-rg350-1cf3f50b7429483409e16994a21c040235abd261.tar.bz2 scummvm-rg350-1cf3f50b7429483409e16994a21c040235abd261.zip |
ALL: Unify 'wrong version of engine data' message
Diffstat (limited to 'engines/mortevielle')
-rw-r--r-- | engines/mortevielle/mortevielle.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/engines/mortevielle/mortevielle.cpp b/engines/mortevielle/mortevielle.cpp index 14391a2241..fbfde901ca 100644 --- a/engines/mortevielle/mortevielle.cpp +++ b/engines/mortevielle/mortevielle.cpp @@ -318,11 +318,16 @@ Common::ErrorCode MortevielleEngine::loadMortDat() { } // Check the version - if (f.readByte() < MORT_DAT_REQUIRED_VERSION) { - GUIErrorMessage("The located mort.dat data file is too old, please download an updated version on scummvm.org"); + int majVer = f.readByte(); + int minVer = f.readByte(); + + if (majVer < MORT_DAT_REQUIRED_VERSION) { + Common::String msg = Common::String::format( + _("Incorrect version of the '%s' file found. Expected %d.%d but got %d.%d. Get it from the ScummVM website"), + MORT_DAT, MORT_DAT_REQUIRED_VERSION, 0, majVer, minVer); + GUIErrorMessage(msg); return Common::kReadingFailed; } - f.readByte(); // Minor version // Loop to load resources from the data file while (f.pos() < f.size()) { |