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/hugo/hugo.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/hugo/hugo.cpp') diff --git a/engines/hugo/hugo.cpp b/engines/hugo/hugo.cpp index 267eb08436..e129727e84 100644 --- a/engines/hugo/hugo.cpp +++ b/engines/hugo/hugo.cpp @@ -27,6 +27,7 @@ #include "common/debug-channels.h" #include "common/config-manager.h" #include "common/textconsole.h" +#include "common/translation.h" #include "hugo/hugo.h" #include "hugo/console.h" @@ -429,10 +430,11 @@ void HugoEngine::runMachine() { */ bool HugoEngine::loadHugoDat() { Common::File in; - in.open("hugo.dat"); + Common::String filename = "hugo.dat"; + in.open(filename.c_str()); if (!in.isOpen()) { - Common::String errorMessage = "You're missing the 'hugo.dat' file. Get it from the ScummVM website"; + Common::String errorMessage = Common::String::format(_("You're missing the '%s' file. Get it from the ScummVM website"), filename.c_str()); GUIErrorMessage(errorMessage); warning("%s", errorMessage.c_str()); return false; -- cgit v1.2.3