aboutsummaryrefslogtreecommitdiff
path: root/sky/sky.cpp
diff options
context:
space:
mode:
authorMax Horn2003-09-18 18:23:53 +0000
committerMax Horn2003-09-18 18:23:53 +0000
commit6a4663824e573777c512e0ca21a5c5f61865b83c (patch)
tree78061db44cc3d3731decd51a84865225dd53840f /sky/sky.cpp
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 'sky/sky.cpp')
-rw-r--r--sky/sky.cpp11
1 files changed, 9 insertions, 2 deletions
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 <errno.h>
#include <time.h>
@@ -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 };