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/tony/POTFILES | 1 + engines/tony/tony.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 engines/tony/POTFILES (limited to 'engines/tony') diff --git a/engines/tony/POTFILES b/engines/tony/POTFILES new file mode 100644 index 0000000000..a2e3c09eab --- /dev/null +++ b/engines/tony/POTFILES @@ -0,0 +1 @@ +engines/tony/tony.cpp diff --git a/engines/tony/tony.cpp b/engines/tony/tony.cpp index c51f449aa1..a3ba9c0f0c 100644 --- a/engines/tony/tony.cpp +++ b/engines/tony/tony.cpp @@ -27,6 +27,7 @@ #include "common/events.h" #include "common/file.h" #include "common/installshield_cab.h" +#include "common/translation.h" #include "tony/tony.h" #include "tony/custom.h" #include "tony/debugger.h" @@ -189,11 +190,12 @@ Common::ErrorCode TonyEngine::init() { bool TonyEngine::loadTonyDat() { Common::String msg; Common::File in; + Common::String filename = "tony.dat"; - in.open("tony.dat"); + in.open(filename.c_str()); if (!in.isOpen()) { - msg = "You're missing the 'tony.dat' file. Get it from the ScummVM website"; + msg = Common::String::format(_("You're missing the '%s' file. Get it from the ScummVM website"), filename.c_str()); GUIErrorMessage(msg); warning("%s", msg.c_str()); return false; -- cgit v1.2.3