From e1ec91b69abe730f297dfe1fe1740f4b2a13d8da Mon Sep 17 00:00:00 2001 From: Ben Castricum Date: Mon, 5 Dec 2016 15:29:23 +0100 Subject: ALL: Unify 'missing engine data' message --- engines/sky/compact.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engines/sky/compact.cpp') 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(); -- cgit v1.2.3