diff options
author | Max Horn | 2010-02-07 12:16:23 +0000 |
---|---|---|
committer | Max Horn | 2010-02-07 12:16:23 +0000 |
commit | ae0c9b48cd48abcca3b4ff66043f38f112aff0d2 (patch) | |
tree | c25903a44cdff2deb87aac555ad5316bd0038c15 /engines/sci/engine/features.h | |
parent | 0a0875efb8f515ff6469d3ccdbd18f390fb53562 (diff) | |
download | scummvm-rg350-ae0c9b48cd48abcca3b4ff66043f38f112aff0d2.tar.gz scummvm-rg350-ae0c9b48cd48abcca3b4ff66043f38f112aff0d2.tar.bz2 scummvm-rg350-ae0c9b48cd48abcca3b4ff66043f38f112aff0d2.zip |
Split GameFeatures::autoDetectFeature into several methods, one for each feature
svn-id: r47962
Diffstat (limited to 'engines/sci/engine/features.h')
-rw-r--r-- | engines/sci/engine/features.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/engines/sci/engine/features.h b/engines/sci/engine/features.h index 910cfd591d..77c2f0cff7 100644 --- a/engines/sci/engine/features.h +++ b/engines/sci/engine/features.h @@ -31,14 +31,6 @@ namespace Sci { -enum FeatureDetection { - kDetectGfxFunctions = 0, - kDetectMoveCountType = 1, - kDetectSoundType = 2, - kDetectLofsType = 3, - kDetectSci21KernelTable = 4 -}; - class GameFeatures { public: GameFeatures(SegManager *segMan, Kernel *kernel); @@ -99,7 +91,13 @@ public: private: reg_t getDetectionAddr(const Common::String &objName, Selector slc, int methodNum = -1); - bool autoDetectFeature(FeatureDetection featureDetection, int methodNum = -1); + bool autoDetectLofsType(int methodNum); + bool autoDetectGfxFunctionsType(int methodNum = -1); + bool autoDetectSoundType(); + bool autoDetectMoveCountType(); +#ifdef ENABLE_SCI32 + bool autoDetectSci21KernelType(); +#endif SciVersion _doSoundType, _setCursorType, _lofsType, _gfxFunctionsType; #ifdef ENABLE_SCI32 |