diff options
author | Walter van Niftrik | 2009-08-15 12:09:47 +0000 |
---|---|---|
committer | Walter van Niftrik | 2009-08-15 12:09:47 +0000 |
commit | 5709e524f99a80258f410246254879670b59580f (patch) | |
tree | c49b3454ee309f1e6218bcfd292d7330e7d0b11c /engines/sci/resource.h | |
parent | 49a4df3c8c3e51d88c03b8f6745c787fb0f6a47e (diff) | |
download | scummvm-rg350-5709e524f99a80258f410246254879670b59580f.tar.gz scummvm-rg350-5709e524f99a80258f410246254879670b59580f.tar.bz2 scummvm-rg350-5709e524f99a80258f410246254879670b59580f.zip |
SCI: Rename sci_version_t to SciVersion
svn-id: r43407
Diffstat (limited to 'engines/sci/resource.h')
-rw-r--r-- | engines/sci/resource.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/engines/sci/resource.h b/engines/sci/resource.h index e6bacdab1d..3a51b3908e 100644 --- a/engines/sci/resource.h +++ b/engines/sci/resource.h @@ -45,6 +45,16 @@ namespace Sci { /** The maximum allowed size for a compressed or decompressed resource */ #define SCI_MAX_RESOURCE_SIZE 0x0400000 +/** SCI versions */ +enum SciVersion { + SCI_VERSION_AUTODETECT = 0, + SCI_VERSION_0 = 1, + SCI_VERSION_01 = 2, + SCI_VERSION_1 = 3, + SCI_VERSION_1_1 = 4, + SCI_VERSION_32 = 5 +}; + /** Resource status types */ enum ResourceStatus { kResStatusNoMalloc = 0, @@ -221,7 +231,7 @@ public: * Returns the SCI version as detected by the resource manager * @return SCI version */ - sci_version_t sciVersion() const { return _sciVersion; } + SciVersion sciVersion() const { return _sciVersion; } /** * Creates a new SCI resource manager. @@ -285,7 +295,7 @@ protected: ResourceSource *_audioMapSCI1; //!< Currently loaded audio map for SCI1 ResVersion _volVersion; //!< RESOURCE.0xx version ResVersion _mapVersion; //!< RESOURCE.MAP version - sci_version_t _sciVersion; //!< Detected SCI version */ + SciVersion _sciVersion; //!< Detected SCI version */ /** * Add a path to the resource manager's list of sources. @@ -393,7 +403,7 @@ protected: void addToLRU(Resource *res); void removeFromLRU(Resource *res); - int guessSciVersion(); + SciVersion guessSciVersion(); }; } // End of namespace Sci |