aboutsummaryrefslogtreecommitdiff
path: root/queen
diff options
context:
space:
mode:
authorOliver Kiehl2003-09-28 17:48:07 +0000
committerOliver Kiehl2003-09-28 17:48:07 +0000
commit07fe952eef4852f8b1429d58befe0eb529679f6d (patch)
tree6b34ed783fc0785b229194586f557b898d4d4f6b /queen
parent0ac7630ebbef5c0933099a30f533a366728ba706 (diff)
downloadscummvm-rg350-07fe952eef4852f8b1429d58befe0eb529679f6d.tar.gz
scummvm-rg350-07fe952eef4852f8b1429d58befe0eb529679f6d.tar.bz2
scummvm-rg350-07fe952eef4852f8b1429d58befe0eb529679f6d.zip
allow queen to compile as plugin
svn-id: r10469
Diffstat (limited to 'queen')
-rw-r--r--queen/module.mk5
-rw-r--r--queen/queen.cpp3
2 files changed, 8 insertions, 0 deletions
diff --git a/queen/module.mk b/queen/module.mk
index b1528ec047..e6987e27a4 100644
--- a/queen/module.mk
+++ b/queen/module.mk
@@ -7,5 +7,10 @@ MODULE_OBJS = \
queen/queen.o \
queen/version.o \
+# This module can be built as a plugin
+ifdef BUILD_PLUGINS
+PLUGIN := 1
+endif
+
# Include common rules
include common.rules
diff --git a/queen/queen.cpp b/queen/queen.cpp
index f1e380057c..3668c57e03 100644
--- a/queen/queen.cpp
+++ b/queen/queen.cpp
@@ -23,6 +23,7 @@
#include "queen/queen.h"
#include "common/file.h"
#include "base/gameDetector.h"
+#include "base/plugins.h"
extern uint16 _debugLevel;
@@ -47,6 +48,8 @@ Engine *Engine_QUEEN_create(GameDetector *detector, OSystem *syst) {
return new QueenEngine(detector, syst);
}
+REGISTER_PLUGIN("Flight of the Amazon Queen", Engine_QUEEN_targetList, Engine_QUEEN_create);
+
QueenEngine::QueenEngine(GameDetector *detector, OSystem *syst)
: Engine(detector, syst) {