diff options
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; |