aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2016-04-02 23:12:35 +0200
committerJohannes Schickel2016-04-02 23:12:35 +0200
commit7a290757a8ef9ae16d27a2eecf000a9ca8005a21 (patch)
tree31d3bcbf8ca2391ae6f8fc32f5979fe9edb057ba /engines
parent98f0be39e27a69bae5fedab5f82e876ea5fc0e41 (diff)
parentcf73ea539581f5c07ce1a0af937dd442dabd7ecf (diff)
downloadscummvm-rg350-7a290757a8ef9ae16d27a2eecf000a9ca8005a21.tar.gz
scummvm-rg350-7a290757a8ef9ae16d27a2eecf000a9ca8005a21.tar.bz2
scummvm-rg350-7a290757a8ef9ae16d27a2eecf000a9ca8005a21.zip
Merge pull request #739 from salty-horse/comi_object_labels_setting
SCUMM: Add checkbox for object_labels setting in "Edit Game" dialog
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/POTFILES1
-rw-r--r--engines/scumm/detection.cpp17
2 files changed, 18 insertions, 0 deletions
diff --git a/engines/scumm/POTFILES b/engines/scumm/POTFILES
index 246f14d3f0..039aa16755 100644
--- a/engines/scumm/POTFILES
+++ b/engines/scumm/POTFILES
@@ -1,3 +1,4 @@
+engines/scumm/detection.cpp
engines/scumm/dialogs.cpp
engines/scumm/help.cpp
engines/scumm/input.cpp
diff --git a/engines/scumm/detection.cpp b/engines/scumm/detection.cpp
index 9264a6443b..0867b20fc3 100644
--- a/engines/scumm/detection.cpp
+++ b/engines/scumm/detection.cpp
@@ -29,6 +29,7 @@
#include "common/md5.h"
#include "common/savefile.h"
#include "common/system.h"
+#include "common/translation.h"
#include "audio/mididrv.h"
@@ -957,6 +958,7 @@ public:
virtual int getMaximumSaveSlot() const;
virtual void removeSaveState(const char *target, int slot) const;
virtual SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
+ virtual const ExtraGuiOptions getExtraGuiOptions(const Common::String &target) const;
};
bool ScummMetaEngine::hasFeature(MetaEngineFeature f) const {
@@ -1329,6 +1331,21 @@ SaveStateDescriptor ScummMetaEngine::querySaveMetaInfos(const char *target, int
return desc;
}
+static const ExtraGuiOption comiObjectLabelsOption = {
+ _s("Show Object Line"),
+ _s("Show the names of objects at the bottom of the screen"),
+ "object_labels",
+ true
+};
+
+const ExtraGuiOptions ScummMetaEngine::getExtraGuiOptions(const Common::String &target) const {
+ ExtraGuiOptions options;
+ if (target.empty() || ConfMan.get("gameid", target) == "comi") {
+ options.push_back(comiObjectLabelsOption);
+ }
+ return options;
+}
+
#if PLUGIN_ENABLED_DYNAMIC(SCUMM)
REGISTER_PLUGIN_DYNAMIC(SCUMM, PLUGIN_TYPE_ENGINE, ScummMetaEngine);
#else