aboutsummaryrefslogtreecommitdiff
path: root/engines/access
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/access
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/access')
-rw-r--r--engines/access/POTFILES1
-rw-r--r--engines/access/resources.cpp6
2 files changed, 5 insertions, 2 deletions
diff --git a/engines/access/POTFILES b/engines/access/POTFILES
new file mode 100644
index 0000000000..eafbe17056
--- /dev/null
+++ b/engines/access/POTFILES
@@ -0,0 +1 @@
+engines/access/resources.cpp
diff --git a/engines/access/resources.cpp b/engines/access/resources.cpp
index 096fb15b35..79cf844df6 100644
--- a/engines/access/resources.cpp
+++ b/engines/access/resources.cpp
@@ -24,6 +24,7 @@
#include "access/access.h"
#include "access/amazon/amazon_resources.h"
#include "access/martian/martian_resources.h"
+#include "common/translation.h"
namespace Access {
@@ -38,8 +39,9 @@ Resources *Resources::init(AccessEngine *vm) {
bool Resources::load(Common::String &errorMessage) {
Common::File f;
- if (!f.open("access.dat")) {
- errorMessage = "Could not locate required access.dat file";
+ Common::String filename = "access.dat";
+ if (!f.open(filename.c_str())) {
+ errorMessage = Common::String::format(_("You're missing the '%s' file. Get it from the ScummVM website"), filename.c_str());
return false;
}