aboutsummaryrefslogtreecommitdiff
path: root/engines/toon
diff options
context:
space:
mode:
authorBen Castricum2016-12-05 15:29:23 +0100
committerBen Castricum2016-12-05 21:04:50 +0100
commite1ec91b69abe730f297dfe1fe1740f4b2a13d8da (patch)
tree33f63eaf0664eb23398def1abda5fe58ae4aa7ef /engines/toon
parent5c60a75f94f2a267b1ec02728a1f6ad0aa7da9c9 (diff)
downloadscummvm-rg350-e1ec91b69abe730f297dfe1fe1740f4b2a13d8da.tar.gz
scummvm-rg350-e1ec91b69abe730f297dfe1fe1740f4b2a13d8da.tar.bz2
scummvm-rg350-e1ec91b69abe730f297dfe1fe1740f4b2a13d8da.zip
ALL: Unify 'missing engine data' message
Diffstat (limited to 'engines/toon')
-rw-r--r--engines/toon/toon.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp
index 43fb3a1b1f..b0cbe80cfd 100644
--- a/engines/toon/toon.cpp
+++ b/engines/toon/toon.cpp
@@ -4909,12 +4909,13 @@ void ToonEngine::createShadowLUT() {
bool ToonEngine::loadToonDat() {
Common::File in;
Common::String msg;
+ Common::String filename = "toon.dat";
int majVer, minVer;
- in.open("toon.dat");
+ in.open(filename.c_str());
if (!in.isOpen()) {
- msg = _("You're missing the 'toon.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;