[Scummvm-cvs-logs] SF.net SVN: scummvm: [25176] scummvm/trunk/common/advancedDetector.h
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Thu Jan 25 01:51:33 CET 2007
Revision: 25176
http://scummvm.svn.sourceforge.net/scummvm/?rev=25176&view=rev
Author: fingolfin
Date: 2007-01-24 16:51:32 -0800 (Wed, 24 Jan 2007)
Log Message:
-----------
At this time, ADVANCED_DETECTOR_DEFINE_PLUGIN doesn't take a factory function, but rather only a simple class name (one of the reasons it can't be used by the Kyra code right now)
Modified Paths:
--------------
scummvm/trunk/common/advancedDetector.h
Modified: scummvm/trunk/common/advancedDetector.h
===================================================================
--- scummvm/trunk/common/advancedDetector.h 2007-01-25 00:47:35 UTC (rev 25175)
+++ scummvm/trunk/common/advancedDetector.h 2007-01-25 00:51:32 UTC (rev 25176)
@@ -96,7 +96,7 @@
);
-#define ADVANCED_DETECTOR_DEFINE_PLUGIN(engine,createFunction,detectFunc,params) \
+#define ADVANCED_DETECTOR_DEFINE_PLUGIN(engine,className,detectFunc,params) \
GameList Engine_##engine##_gameIDList() { \
return GameList(params.list); \
} \
@@ -111,7 +111,7 @@
assert(engine); \
PluginError err = ADVANCED_DETECTOR_ENGINE_CREATE(detectFunc, params); \
if (err == kNoError) \
- *engine = new createFunction(syst); \
+ *engine = new className(syst); \
return err; \
} \
void dummyFuncToAllowTrailingSemicolon()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list