diff options
| author | Max Horn | 2008-11-04 16:11:40 +0000 | 
|---|---|---|
| committer | Max Horn | 2008-11-04 16:11:40 +0000 | 
| commit | 61aadb378d654425d55b8cf9f91df4283b46de7e (patch) | |
| tree | c087a5576ecc7f707abd68c596cf5d0955708e91 /engines/sword1 | |
| parent | 70679e68951789f70f57a8b900b51b3cf52979b1 (diff) | |
| download | scummvm-rg350-61aadb378d654425d55b8cf9f91df4283b46de7e.tar.gz scummvm-rg350-61aadb378d654425d55b8cf9f91df4283b46de7e.tar.bz2 scummvm-rg350-61aadb378d654425d55b8cf9f91df4283b46de7e.zip  | |
Fixed the EngineFeature vs. MetaEngineFeature mess, clarified some EngineFeature comments
svn-id: r34896
Diffstat (limited to 'engines/sword1')
| -rw-r--r-- | engines/sword1/sword1.cpp | 6 | ||||
| -rw-r--r-- | engines/sword1/sword1.h | 9 | 
2 files changed, 11 insertions, 4 deletions
diff --git a/engines/sword1/sword1.cpp b/engines/sword1/sword1.cpp index 8cbd549c75..6e5420787b 100644 --- a/engines/sword1/sword1.cpp +++ b/engines/sword1/sword1.cpp @@ -106,11 +106,15 @@ public:  bool SwordMetaEngine::hasFeature(MetaEngineFeature f) const {  	return -		(f == kSupportsRTL) ||  		(f == kSupportsListSaves) ||  		(f == kSupportsLoadingDuringStartup);  } +bool Sword1::SwordEngine::hasFeature(EngineFeature f) const { +	return +		(f == kSupportsRTL); +} +  GameList SwordMetaEngine::getSupportedGames() const {  	GameList games;  	games.push_back(sword1FullSettings); diff --git a/engines/sword1/sword1.h b/engines/sword1/sword1.h index 5bc80b4f6d..8397f30705 100644 --- a/engines/sword1/sword1.h +++ b/engines/sword1/sword1.h @@ -77,12 +77,15 @@ public:  	virtual ~SwordEngine();  	static SystemVars _systemVars;  	void reinitialize(void); -	virtual void syncSoundSettings();  	uint32 _features;  protected: -	int go(); -	int init(); +	// Engine APIs +	virtual int init(); +	virtual int go(); +	virtual bool hasFeature(EngineFeature f) const; +	virtual void syncSoundSettings(); +  private:  	void delay(int32 amount);  | 
