[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.294,1.295

Max Horn fingolfin at users.sourceforge.net
Thu Sep 18 11:25:27 CEST 2003


Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1:/tmp/cvs-serv27120/simon

Modified Files:
	simon.cpp 
Log Message:
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

Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.294
retrieving revision 1.295
diff -u -d -r1.294 -r1.295
--- simon.cpp	17 Sep 2003 22:41:00 -0000	1.294
+++ simon.cpp	18 Sep 2003 18:23:53 -0000	1.295
@@ -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 @@
 	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
@@ -167,10 +179,6 @@
 	"GAME32",									// gamepc_filename
 };
 
-
-Engine *Engine_SIMON_create(GameDetector *detector, OSystem *syst) {
-	return new SimonEngine(detector, syst);
-}
 
 SimonEngine::SimonEngine(GameDetector *detector, OSystem *syst)
 	: Engine(detector, syst), midi (syst) {





More information about the Scummvm-git-logs mailing list