aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/detection.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2015-03-15 04:05:06 +0200
committerFilippos Karapetis2015-03-15 04:05:06 +0200
commit19a9c068f994d5800a60dff6f14221f03f5d4cc3 (patch)
tree8a05a9203c6316b7b817bd59b9b1368ae8f08097 /engines/mads/detection.cpp
parentd3afff9bc736175b0275d923788198706adc7d78 (diff)
downloadscummvm-rg350-19a9c068f994d5800a60dff6f14221f03f5d4cc3.tar.gz
scummvm-rg350-19a9c068f994d5800a60dff6f14221f03f5d4cc3.tar.bz2
scummvm-rg350-19a9c068f994d5800a60dff6f14221f03f5d4cc3.zip
MADS: Hook up all of the remaining options, and add custom game options
Diffstat (limited to 'engines/mads/detection.cpp')
-rw-r--r--engines/mads/detection.cpp63
1 files changed, 62 insertions, 1 deletions
diff --git a/engines/mads/detection.cpp b/engines/mads/detection.cpp
index 971acde024..ea71fc8539 100644
--- a/engines/mads/detection.cpp
+++ b/engines/mads/detection.cpp
@@ -29,6 +29,7 @@
#include "common/memstream.h"
#include "engines/advancedDetector.h"
#include "common/system.h"
+#include "common/translation.h"
#include "graphics/colormasks.h"
#include "graphics/surface.h"
#include "mads/events.h"
@@ -75,11 +76,71 @@ static const PlainGameDescriptor MADSGames[] = {
{0, 0}
};
+#define GAMEOPTION_EASY_MOUSE GUIO_GAMEOPTIONS1
+#define GAMEOPTION_ANIMATED_INVENTORY GUIO_GAMEOPTIONS2
+#define GAMEOPTION_ANIMATED_INTERFACE GUIO_GAMEOPTIONS3
+#define GAMEOPTION_NAUGHTY_MODE GUIO_GAMEOPTIONS4
+//#define GAMEOPTION_GRAPHICS_DITHERING GUIO_GAMEOPTIONS5
+
#include "mads/detection_tables.h"
+static const ADExtraGuiOptionsMap optionsList[] = {
+ {
+ GAMEOPTION_EASY_MOUSE,
+ {
+ _s("Easy mouse interface"),
+ _s("Shows object names when hovering the mouse over them"),
+ "EasyMouse",
+ true
+ }
+ },
+
+ {
+ GAMEOPTION_ANIMATED_INVENTORY,
+ {
+ _s("Animated inventory items"),
+ _s("Animated inventory items"),
+ "InvObjectsAnimated",
+ true
+ }
+ },
+
+ {
+ GAMEOPTION_ANIMATED_INTERFACE,
+ {
+ _s("Animated game interface"),
+ _s("Animated game interface"),
+ "TextWindowAnimated",
+ true
+ }
+ },
+
+ {
+ GAMEOPTION_NAUGHTY_MODE,
+ {
+ _s("Naughty game mode"),
+ _s("Naughty game mode"),
+ "NaughtyMode",
+ true
+ }
+ },
+
+ /*{
+ GAMEOPTION_GRAPHICS_DITHERING,
+ {
+ _s("Graphics dithering"),
+ _s("Graphics dithering"),
+ "GraphicsDithering",
+ true
+ }
+ },*/
+
+ AD_EXTRA_GUI_OPTIONS_TERMINATOR
+};
+
class MADSMetaEngine : public AdvancedMetaEngine {
public:
- MADSMetaEngine() : AdvancedMetaEngine(MADS::gameDescriptions, sizeof(MADS::MADSGameDescription), MADSGames) {
+ MADSMetaEngine() : AdvancedMetaEngine(MADS::gameDescriptions, sizeof(MADS::MADSGameDescription), MADSGames, optionsList) {
_maxScanDepth = 3;
}