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/drascula | |
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/drascula')
-rw-r--r-- | engines/drascula/POTFILES | 1 | ||||
-rw-r--r-- | engines/drascula/drascula.cpp | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/engines/drascula/POTFILES b/engines/drascula/POTFILES index ea79f9e066..925b309996 100644 --- a/engines/drascula/POTFILES +++ b/engines/drascula/POTFILES @@ -1,2 +1,3 @@ +engines/drascula/drascula.cpp engines/drascula/detection.cpp engines/drascula/saveload.cpp diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp index ab91056480..f58104fd40 100644 --- a/engines/drascula/drascula.cpp +++ b/engines/drascula/drascula.cpp @@ -25,6 +25,7 @@ #include "common/file.h" #include "common/config-manager.h" #include "common/textconsole.h" +#include "common/translation.h" #include "backends/audiocd/audiocd.h" @@ -955,12 +956,13 @@ void DrasculaEngine::hipo_sin_nadie(int counter){ bool DrasculaEngine::loadDrasculaDat() { Common::File in; + Common::String filename = "drascula.dat"; int i; - in.open("drascula.dat"); + in.open(filename.c_str()); if (!in.isOpen()) { - Common::String errorMessage = "You're missing the 'drascula.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()); |