From 6a4663824e573777c512e0ca21a5c5f61865b83c Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 18 Sep 2003 18:23:53 +0000 Subject: 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 --- simon/simon.cpp | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'simon') 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 #include @@ -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; -- cgit v1.2.3