[Scummvm-cvs-logs] scummvm master -> 56a0ba8b207e476ac238a941128b69beb9f3e70c

m-kiewitz m_kiewitz at users.sourceforge.net
Sun Jun 14 19:35:39 CEST 2015


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
56a0ba8b20 SHERLOCK: 3DO: make inventory work somewhat


Commit: 56a0ba8b207e476ac238a941128b69beb9f3e70c
    https://github.com/scummvm/scummvm/commit/56a0ba8b207e476ac238a941128b69beb9f3e70c
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2015-06-14T19:35:09+02:00

Commit Message:
SHERLOCK: 3DO: make inventory work somewhat

inventory images is in item.lib on 3DO

Changed paths:
    engines/sherlock/inventory.cpp
    engines/sherlock/resources.cpp



diff --git a/engines/sherlock/inventory.cpp b/engines/sherlock/inventory.cpp
index 94e90b5..7973579 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;
diff --git a/engines/sherlock/resources.cpp b/engines/sherlock/resources.cpp
index 71037fe..32b0743 100644
--- a/engines/sherlock/resources.cpp
+++ b/engines/sherlock/resources.cpp
@@ -104,9 +104,7 @@ Resources::Resources(SherlockEngine *vm) : _vm(vm), _cache(vm) {
 			// 3DO
 
 			// ITEM data from VGS.LIB is in ITEM.LIB
-			// resources themselves start with width and height as UINT16BE
-			// but after that they are different. Don't seem to be raw data
-			//addToCache("item.lib");
+			addToCache("item.lib");
 
 			// talk.lib - resources themselves seem to be the same, although a few texts were slightly changed
 			addToCache("talk.lib");






More information about the Scummvm-git-logs mailing list