diff options
author | Ben Castricum | 2016-12-05 15:29:23 +0100 |
---|---|---|
committer | Ben Castricum | 2016-12-05 21:04:50 +0100 |
commit | e1ec91b69abe730f297dfe1fe1740f4b2a13d8da (patch) | |
tree | 33f63eaf0664eb23398def1abda5fe58ae4aa7ef /engines/sky | |
parent | 5c60a75f94f2a267b1ec02728a1f6ad0aa7da9c9 (diff) | |
download | scummvm-rg350-e1ec91b69abe730f297dfe1fe1740f4b2a13d8da.tar.gz scummvm-rg350-e1ec91b69abe730f297dfe1fe1740f4b2a13d8da.tar.bz2 scummvm-rg350-e1ec91b69abe730f297dfe1fe1740f4b2a13d8da.zip |
ALL: Unify 'missing engine data' message
Diffstat (limited to 'engines/sky')
-rw-r--r-- | engines/sky/compact.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sky/compact.cpp b/engines/sky/compact.cpp index c2ca557ec2..731c390d6f 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(_("You're missing the '%s' file. Get it from the ScummVM website"), filename.c_str()); + GUIErrorMessage(msg); + error("%s", msg.c_str()); } uint16 fileVersion = _cptFile->readUint16LE(); |