SHERLOCK: 3DO: make inventory work somewhat

inventory images is in item.lib on 3DO
This commit is contained in:
Martin Kiewitz 2015-06-14 19:35:09 +02:00
parent 2d70a7af6d
commit 56a0ba8b20
2 changed files with 8 additions and 5 deletions

View file

@ -105,9 +105,14 @@ void Inventory::loadGraphics() {
// Get the name of the item to be displayed, figure out its accompanying // Get the name of the item to be displayed, figure out its accompanying
// .VGS file with its picture, and then load it // .VGS file with its picture, and then load it
int invNum = findInv((*this)[idx]._name); int invNum = findInv((*this)[idx]._name);
Common::String fName = Common::String::format("item%02d.vgs", invNum + 1); Common::String filename = Common::String::format("item%02d.vgs", invNum + 1);
_invShapes[idx - _invIndex] = new ImageFile(fName); if (_vm->getPlatform() != Common::kPlatform3DO) {
// PC
_invShapes[idx - _invIndex] = new ImageFile(filename);
} else {
_invShapes[idx - _invIndex] = new ImageFile3DO(filename, kImageFile3DOType_RoomFormat);
}
} }
_invGraphicsLoaded = true; _invGraphicsLoaded = true;

View file

@ -104,9 +104,7 @@ Resources::Resources(SherlockEngine *vm) : _vm(vm), _cache(vm) {
// 3DO // 3DO
// ITEM data from VGS.LIB is in ITEM.LIB // ITEM data from VGS.LIB is in ITEM.LIB
// resources themselves start with width and height as UINT16BE addToCache("item.lib");
// but after that they are different. Don't seem to be raw data
//addToCache("item.lib");
// talk.lib - resources themselves seem to be the same, although a few texts were slightly changed // talk.lib - resources themselves seem to be the same, although a few texts were slightly changed
addToCache("talk.lib"); addToCache("talk.lib");