[Scummvm-git-logs] scummvm master -> 188143b91f2744a9302da1ad6d2fcb2b817a7a19
Scorpeg
noreply at scummvm.org
Tue Nov 17 06:06:40 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
188143b91f ENGINES: Add hotspot engine flag to get enabled/disabled state
Commit: 188143b91f2744a9302da1ad6d2fcb2b817a7a19
https://github.com/scummvm/scummvm/commit/188143b91f2744a9302da1ad6d2fcb2b817a7a19
Author: Scorp (scorp at mrs.mn)
Date: 2026-11-17T09:06:27+03:00
Commit Message:
ENGINES: Add hotspot engine flag to get enabled/disabled state
Changed paths:
engines/metaengine.cpp
engines/metaengine.h
diff --git a/engines/metaengine.cpp b/engines/metaengine.cpp
index 1d0f946b897..652f7fe3165 100644
--- a/engines/metaengine.cpp
+++ b/engines/metaengine.cpp
@@ -26,6 +26,7 @@
#include "backends/keymapper/keymap.h"
#include "backends/keymapper/standard-actions.h"
+#include "common/config-manager.h"
#include "common/savefile.h"
#include "common/system.h"
#include "common/translation.h"
@@ -76,6 +77,13 @@ Common::Action *MetaEngine::createHotspotAction() {
return action;
}
+bool MetaEngine::hotspotsEnabled(const char *target) {
+ if (target && ConfMan.hasKey("enable_hotspots", target))
+ return ConfMan.getBool("enable_hotspots", target);
+ return ConfMan.hasKey("enable_hotspots", Common::ConfigManager::kApplicationDomain) &&
+ ConfMan.getBool("enable_hotspots", Common::ConfigManager::kApplicationDomain);
+}
+
Common::KeymapArray MetaEngine::initKeymaps(const char *target) const {
using namespace Common;
diff --git a/engines/metaengine.h b/engines/metaengine.h
index 233b308c3de..7d5511e307d 100644
--- a/engines/metaengine.h
+++ b/engines/metaengine.h
@@ -391,6 +391,7 @@ public:
/** Create the standard hotspot action; ownership passes to the receiving keymap. */
static Common::Action *createHotspotAction();
+ static bool hotspotsEnabled(const char *target);
/**
* Register the default values for the settings that the engine uses into the
More information about the Scummvm-git-logs
mailing list