diff options
author | Eugene Sandulenko | 2016-12-17 12:45:38 +0100 |
---|---|---|
committer | GitHub | 2016-12-17 12:45:38 +0100 |
commit | 0e5788f4e3b4060c4a78527815ddbdc63c9f4d67 (patch) | |
tree | 9ef55ddefaa81c25fdd4e2c52873c369652360ef /engines/sky | |
parent | 34b2d3f97541673d2909d33ac525b730a7552ad6 (diff) | |
parent | ebaab44cd16ae784cebb66b7cf220842808a8bde (diff) | |
download | scummvm-rg350-0e5788f4e3b4060c4a78527815ddbdc63c9f4d67.tar.gz scummvm-rg350-0e5788f4e3b4060c4a78527815ddbdc63c9f4d67.tar.bz2 scummvm-rg350-0e5788f4e3b4060c4a78527815ddbdc63c9f4d67.zip |
Merge pull request #866 from BenCastricum/editing
ALL: Unify messages concerning engine data files
Diffstat (limited to 'engines/sky')
-rw-r--r-- | engines/sky/compact.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/sky/compact.cpp b/engines/sky/compact.cpp index c2ca557ec2..ab244c1f84 100644 --- a/engines/sky/compact.cpp +++ b/engines/sky/compact.cpp @@ -126,11 +126,11 @@ static const uint32 turnTableOffsets[] = { SkyCompact::SkyCompact() { _cptFile = new Common::File(); - if (!_cptFile->open("sky.cpt")) { - GUI::MessageDialog dialog(_("Unable to find \"sky.cpt\" file!\n" - "Please download it from www.scummvm.org"), _("OK"), NULL); - dialog.runModal(); - error("Unable to find \"sky.cpt\" file\nPlease download it from www.scummvm.org"); + Common::String filename = "sky.cpt"; + if (!_cptFile->open(filename.c_str())) { + Common::String msg = Common::String::format(_("Unable to locate the '%s' engine data file."), filename.c_str()); + GUIErrorMessage(msg); + error("%s", msg.c_str()); } uint16 fileVersion = _cptFile->readUint16LE(); @@ -138,7 +138,7 @@ SkyCompact::SkyCompact() { error("unknown \"sky.cpt\" version"); if (SKY_CPT_SIZE != _cptFile->size()) { - GUI::MessageDialog dialog(_("The \"sky.cpt\" file has an incorrect size.\nPlease (re)download it from www.scummvm.org"), _("OK"), NULL); + GUI::MessageDialog dialog(_("The \"sky.cpt\" engine data file has an incorrect size."), _("OK"), NULL); dialog.runModal(); error("Incorrect sky.cpt size (%d, expected: %d)", _cptFile->size(), SKY_CPT_SIZE); } |