SHERLOCK: Finish implementation of song / songs debugger commands

This adds support for Rose Tattoo and 3DO version of Serrated
Scalpel.
This commit is contained in:
Torbjörn Andersson 2015-08-30 00:41:48 +02:00
parent 0fa39d17ca
commit b11530d87c
3 changed files with 39 additions and 2 deletions

View file

@ -314,6 +314,14 @@ int Resources::resourceIndex() const {
return _resourceIndex;
}
void Resources::getResourceNames(const Common::String &libraryFile, Common::StringArray &names) {
addToCache(libraryFile);
LibraryIndex &libIndex = _indexes[libraryFile];
for (LibraryIndex::iterator i = libIndex.begin(); i != libIndex.end(); ++i) {
names.push_back(i->_key);
}
}
Common::SeekableReadStream *Resources::decompress(Common::SeekableReadStream &source) {
// This variation can't be used by Rose Tattoo, since compressed resources include the input size,
// not the output size. Which means their decompression has to be done via passed buffers