diff options
author | Martin Kiewitz | 2010-01-06 20:54:18 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-01-06 20:54:18 +0000 |
commit | 72ecf8b61e2e5ddad37a62831d4c7295e60cda9d (patch) | |
tree | 3fc020cee456e6d497d715cf1942e77a562d7b6f /engines | |
parent | dfc039e4bed4fcc9fe9e2a2a7c24bc9385991363 (diff) | |
download | scummvm-rg350-72ecf8b61e2e5ddad37a62831d4c7295e60cda9d.tar.gz scummvm-rg350-72ecf8b61e2e5ddad37a62831d4c7295e60cda9d.tar.bz2 scummvm-rg350-72ecf8b61e2e5ddad37a62831d4c7295e60cda9d.zip |
SCI: add robot/.rbt files to resourcemanager class
svn-id: r47096
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/resource.cpp | 7 | ||||
-rw-r--r-- | engines/sci/resource.h | 3 | ||||
-rw-r--r-- | engines/sci/sci.cpp | 1 |
3 files changed, 8 insertions, 3 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index 1ecbff6eee..27776141e8 100644 --- a/engines/sci/resource.cpp +++ b/engines/sci/resource.cpp @@ -68,14 +68,15 @@ static const char *resourceTypeNames[] = { "memory", "vocab", "font", "cursor", "patch", "bitmap", "palette", "cdaudio", "audio", "sync", "message", "map", "heap", - "audio36", "sync36" + "audio36", "sync36", "", "", "robot" }; static const char *resourceTypeSuffixes[] = { "v56", "p56", "scr", "tex", "snd", " ", "voc", "fon", "cur", "pat", "bit", "pal", "cda", "aud", "syn", - "msg", "map", "hep", "aud", "syn" + "msg", "map", "hep", "aud", "syn", + "trn", " ", "rbt" }; const char *getResourceTypeName(ResourceType restype) { @@ -984,7 +985,7 @@ void ResourceManager::readResourcePatches(ResourceSource *source) { const char *szResType; ResourceSource *psrcPatch; - for (int i = kResourceTypeView; i < kResourceTypeAudio36; i ++) { + for (int i = kResourceTypeView; i < kResourceTypeInvalid; i ++) { files.clear(); szResType = getResourceTypeName((ResourceType)i); // SCI0 naming - type.nnn diff --git a/engines/sci/resource.h b/engines/sci/resource.h index ab3363db0f..cc4b6104fa 100644 --- a/engines/sci/resource.h +++ b/engines/sci/resource.h @@ -111,6 +111,9 @@ enum ResourceType { kResourceTypeHeap, kResourceTypeAudio36, kResourceTypeSync36, + kResourceTypeUnknown1, // Translation, currently unsupported + kResourceTypeUnknown2, + kResourceTypeRobot, kResourceTypeInvalid }; diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index b49ef32cab..4205f9bdf1 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -84,6 +84,7 @@ SciEngine::SciEngine(OSystem *syst, const ADGameDescription *desc) SearchMan.addSubDirectoryMatching(_gameDataDir, "seq"); // SEQ movie files for DOS versions SearchMan.addSubDirectoryMatching(_gameDataDir, "wav"); // speech files in WAV format SearchMan.addSubDirectoryMatching(_gameDataDir, "sfx"); // music/sound files in WAV format + SearchMan.addSubDirectoryMatching(_gameDataDir, "robot"); // robot files } SciEngine::~SciEngine() { |