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/teenagent | |
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/teenagent')
-rw-r--r-- | engines/teenagent/resources.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/teenagent/resources.cpp b/engines/teenagent/resources.cpp index 3cf566a0e5..ebfe5ff1be 100644 --- a/engines/teenagent/resources.cpp +++ b/engines/teenagent/resources.cpp @@ -91,9 +91,10 @@ void Resources::precomputeDialogOffsets() { bool Resources::loadArchives(const ADGameDescription *gd) { Common::File *dat_file = new Common::File(); - if (!dat_file->open("teenagent.dat")) { + Common::String filename = "teenagent.dat"; + if (!dat_file->open(filename.c_str())) { delete dat_file; - Common::String errorMessage = _("You're missing the 'teenagent.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()); warning("%s", errorMessage.c_str()); GUIErrorMessage(errorMessage); return false; |