mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 09:18:38 +00:00
SCI: add robot/.rbt files to resourcemanager class
svn-id: r47096
This commit is contained in:
parent
dfc039e4be
commit
72ecf8b61e
@ -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
|
||||
|
@ -111,6 +111,9 @@ enum ResourceType {
|
||||
kResourceTypeHeap,
|
||||
kResourceTypeAudio36,
|
||||
kResourceTypeSync36,
|
||||
kResourceTypeUnknown1, // Translation, currently unsupported
|
||||
kResourceTypeUnknown2,
|
||||
kResourceTypeRobot,
|
||||
kResourceTypeInvalid
|
||||
};
|
||||
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user