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/tony | |
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/tony')
-rw-r--r-- | engines/tony/POTFILES | 1 | ||||
-rw-r--r-- | engines/tony/tony.cpp | 6 |
2 files changed, 5 insertions, 2 deletions
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; |