diff options
| author | Max Horn | 2007-01-25 00:51:32 +0000 | 
|---|---|---|
| committer | Max Horn | 2007-01-25 00:51:32 +0000 | 
| commit | 521c7a0d09fd0cb8a6e30045c52fd4ca879b4243 (patch) | |
| tree | fa75685c304db49a2aa51ce8d2193c179bb144ba | |
| parent | c92f2ec2123c4639cc062a9b14e8babaa6674eb9 (diff) | |
| download | scummvm-rg350-521c7a0d09fd0cb8a6e30045c52fd4ca879b4243.tar.gz scummvm-rg350-521c7a0d09fd0cb8a6e30045c52fd4ca879b4243.tar.bz2 scummvm-rg350-521c7a0d09fd0cb8a6e30045c52fd4ca879b4243.zip | |
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)
svn-id: r25176
| -rw-r--r-- | common/advancedDetector.h | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/common/advancedDetector.h b/common/advancedDetector.h index 72c9a3838e..5ca9590705 100644 --- a/common/advancedDetector.h +++ b/common/advancedDetector.h @@ -96,7 +96,7 @@ PluginError ADVANCED_DETECTOR_ENGINE_CREATE(  	); -#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 @@ PluginError ADVANCED_DETECTOR_ENGINE_CREATE(  		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() | 
