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 --- sky/sky.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'sky/sky.cpp') diff --git a/sky/sky.cpp b/sky/sky.cpp index c2c0708d23..84d21b495b 100644 --- a/sky/sky.cpp +++ b/sky/sky.cpp @@ -20,14 +20,19 @@ */ #include "stdafx.h" + +#include "base/gameDetector.h" +#include "base/plugins.h" + +#include "common/file.h" + #include "sky/sky.h" #include "sky/skydefs.h" //game specific defines #include "sky/compact.h" #include "sky/logic.h" #include "sky/debug.h" #include "sky/mouse.h" -#include "base/gameDetector.h" -#include "common/file.h" + #include #include @@ -73,6 +78,8 @@ Engine *Engine_SKY_create(GameDetector *detector, OSystem *syst) { return new SkyState(detector, syst); } +REGISTER_PLUGIN("Beneath a Steel Sky", Engine_SKY_targetList, Engine_SKY_create); + void **SkyState::_itemList[300]; SystemVars SkyState::_systemVars = {0, 0, 0, 0, 4316, 0, 0, false, false }; -- cgit v1.2.3