aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
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;