[Scummvm-cvs-logs] SF.net SVN: scummvm: [29599] scummvm/trunk/common/advancedDetector.h
cyx at users.sourceforge.net
cyx at users.sourceforge.net
Wed Nov 21 22:51:22 CET 2007
Revision: 29599
http://scummvm.svn.sourceforge.net/scummvm/?rev=29599&view=rev
Author: cyx
Date: 2007-11-21 13:51:21 -0800 (Wed, 21 Nov 2007)
Log Message:
-----------
remove _ADVANCED_DETECTOR_DEFINE_PLUGIN_HEAD
Modified Paths:
--------------
scummvm/trunk/common/advancedDetector.h
Modified: scummvm/trunk/common/advancedDetector.h
===================================================================
--- scummvm/trunk/common/advancedDetector.h 2007-11-21 21:50:11 UTC (rev 29598)
+++ scummvm/trunk/common/advancedDetector.h 2007-11-21 21:51:21 UTC (rev 29599)
@@ -54,7 +54,7 @@
ADGameFileDescription filesDescriptions[14];
Language language;
Platform platform;
-
+
/**
* A bitmask of extra flags. The top 8 bits are reserved for generic flags
* defined in the ADGameFlags. This leaves 24 flags to be used by client
@@ -111,7 +111,7 @@
* returned if there's a detection match.
*/
const void *desc;
-
+
/**
* A zero-terminated list of filenames used for matching. All files in
* the list must be present to get a detection match.
@@ -181,15 +181,15 @@
/**
* List of files for file-based fallback detection (optional).
- * This is used if the regular MD5 based detection failed to
+ * This is used if the regular MD5 based detection failed to
* detect anything.
* As usual this list is terminated by an all-zero entry.
*
* @todo Properly explain this
*/
const ADFileBasedFallback *fileBasedFallback;
-
- /**
+
+ /**
* A callback pointing to an (optional) generic fallback detect
* function. If present, this callback is invoked if both the regular
* MD5 based detection as well as the file based fallback failed
@@ -246,7 +246,7 @@
} // End of namespace AdvancedDetector
-#define _ADVANCED_DETECTOR_DEFINE_PLUGIN_HEAD(engine,params) \
+#define ADVANCED_DETECTOR_DEFINE_PLUGIN(engine,factoryFunc,params) \
GameList Engine_##engine##_gameIDList() { \
return Common::AdvancedDetector::gameIDList(params); \
} \
@@ -256,10 +256,6 @@
GameList Engine_##engine##_detectGames(const FSList &fslist) { \
return Common::AdvancedDetector::detectAllGames(fslist, params); \
} \
- void dummyFuncToAllowTrailingSemicolon()
-
-#define ADVANCED_DETECTOR_DEFINE_PLUGIN(engine,factoryFunc,params) \
- _ADVANCED_DETECTOR_DEFINE_PLUGIN_HEAD(engine,params); \
PluginError Engine_##engine##_create(OSystem *syst, Engine **engine) { \
assert(engine); \
Common::AdvancedDetector::upgradeTargetIfNecessary(params); \
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