aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/inventory.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2015-06-14 19:35:09 +0200
committerMartin Kiewitz2015-06-14 19:35:09 +0200
commit56a0ba8b207e476ac238a941128b69beb9f3e70c (patch)
tree1b787c525dbd7785a9e8b19b61f284699fe57b81 /engines/sherlock/inventory.cpp
parent2d70a7af6ddbec99c87ed3885596b4b964cc58b1 (diff)
downloadscummvm-rg350-56a0ba8b207e476ac238a941128b69beb9f3e70c.tar.gz
scummvm-rg350-56a0ba8b207e476ac238a941128b69beb9f3e70c.tar.bz2
scummvm-rg350-56a0ba8b207e476ac238a941128b69beb9f3e70c.zip
SHERLOCK: 3DO: make inventory work somewhat
inventory images is in item.lib on 3DO
Diffstat (limited to 'engines/sherlock/inventory.cpp')
-rw-r--r--engines/sherlock/inventory.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/sherlock/inventory.cpp b/engines/sherlock/inventory.cpp
index 94e90b516a..7973579bfd 100644
--- a/engines/sherlock/inventory.cpp
+++ b/engines/sherlock/inventory.cpp
@@ -105,9 +105,14 @@ void Inventory::loadGraphics() {
// Get the name of the item to be displayed, figure out its accompanying
// .VGS file with its picture, and then load it
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;