aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorMax Horn2003-09-18 18:23:53 +0000
committerMax Horn2003-09-18 18:23:53 +0000
commit6a4663824e573777c512e0ca21a5c5f61865b83c (patch)
tree78061db44cc3d3731decd51a84865225dd53840f /simon
parent209413ed07e931277cf569d260fbfad71406088e (diff)
downloadscummvm-rg350-6a4663824e573777c512e0ca21a5c5f61865b83c.tar.gz
scummvm-rg350-6a4663824e573777c512e0ca21a5c5f61865b83c.tar.bz2
scummvm-rg350-6a4663824e573777c512e0ca21a5c5f61865b83c.zip
added initial support for building our 4 adventure engines as loadable modules; right now only work on OS X; once we add more build rules, other systems with dlopen() should work, too (e.g. Linux); Windows support may come later. This is still very much WIP
svn-id: r10304
Diffstat (limited to 'simon')
-rw-r--r--simon/simon.cpp22
1 files changed, 15 insertions, 7 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index 3025112718..959cbfd9af 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -20,13 +20,19 @@
*/
#include "stdafx.h"
+
+#include "base/gameDetector.h"
+#include "base/plugins.h"
+
+#include "common/config-file.h"
+#include "common/file.h"
+
#include "simon/simon.h"
#include "simon/intern.h"
#include "simon/vga.h"
+
#include "sound/mididrv.h"
-#include "common/config-file.h"
-#include "common/file.h"
-#include "base/gameDetector.h"
+
#include <errno.h>
#include <time.h>
@@ -59,6 +65,12 @@ const TargetSettings *Engine_SIMON_targetList() {
return simon_settings;
}
+Engine *Engine_SIMON_create(GameDetector *detector, OSystem *syst) {
+ return new SimonEngine(detector, syst);
+}
+
+REGISTER_PLUGIN("Simon the Sorcerer", Engine_SIMON_targetList, Engine_SIMON_create);
+
static const GameSpecificSettings simon1_settings = {
1, // VGA_DELAY_BASE
1576 / 4, // TABLE_INDEX_BASE
@@ -168,10 +180,6 @@ static const GameSpecificSettings simon2dos_settings = {
};
-Engine *Engine_SIMON_create(GameDetector *detector, OSystem *syst) {
- return new SimonEngine(detector, syst);
-}
-
SimonEngine::SimonEngine(GameDetector *detector, OSystem *syst)
: Engine(detector, syst), midi (syst) {
OSystem::Property prop;