diff options
author | Max Horn | 2010-06-15 12:11:04 +0000 |
---|---|---|
committer | Max Horn | 2010-06-15 12:11:04 +0000 |
commit | 17a51121623a971b249cd33a8b581fe44b3e5616 (patch) | |
tree | e6089cc1e33f984ce8ec8c044d5e7916c811cecd /engines/sci/resource.h | |
parent | 24a295f4a31799acefc4ace5eac3eaded36d3e42 (diff) | |
download | scummvm-rg350-17a51121623a971b249cd33a8b581fe44b3e5616.tar.gz scummvm-rg350-17a51121623a971b249cd33a8b581fe44b3e5616.tar.bz2 scummvm-rg350-17a51121623a971b249cd33a8b581fe44b3e5616.zip |
SCI: Convert code to use ResourceSource subclasses
svn-id: r49813
Diffstat (limited to 'engines/sci/resource.h')
-rw-r--r-- | engines/sci/resource.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/engines/sci/resource.h b/engines/sci/resource.h index 9b498b59de..cb43c9e13a 100644 --- a/engines/sci/resource.h +++ b/engines/sci/resource.h @@ -69,18 +69,6 @@ enum { MAX_OPENED_VOLUMES = 5 ///< Max number of simultaneously opened volumes }; -enum ResSourceType { - kSourceDirectory = 0, - kSourcePatch, - kSourceVolume, - kSourceExtMap, - kSourceIntMap, - kSourceAudioVolume, - kSourceExtAudioMap, - kSourceWave, - kSourceMacResourceFork -}; - enum ResourceType { kResourceTypeView = 0, kResourceTypePic, @@ -329,14 +317,13 @@ protected: /** * Adds a source to the resource manager's list of sources. * @param map The map associated with this source - * @param type The source type - * @param filename The name of the source to add + * @param source The new source to add * @return A pointer to the added source structure, or NULL if an error occurred. */ - ResourceSource *addSource(ResourceSource *map, ResSourceType type, const Common::String &filename, + ResourceSource *addSource(ResourceSource *map, ResourceSource *source, int number); - ResourceSource *addSource(ResourceSource *map, ResSourceType type, + ResourceSource *addSource(ResourceSource *map, ResourceSource *source, const Common::FSNode *resFile, int number); /** |