aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/resource.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2009-07-11 19:00:56 +0000
committerFilippos Karapetis2009-07-11 19:00:56 +0000
commitf0892cdcbef2dff7a9f072d2bb7df42aa3d44a14 (patch)
treebbe224aaee66ac049c33d89602cd4fbaea0b19f8 /engines/sci/resource.cpp
parent4f0888b8b65531c71c7aefafd9dda0d662a0dfc1 (diff)
downloadscummvm-rg350-f0892cdcbef2dff7a9f072d2bb7df42aa3d44a14.tar.gz
scummvm-rg350-f0892cdcbef2dff7a9f072d2bb7df42aa3d44a14.tar.bz2
scummvm-rg350-f0892cdcbef2dff7a9f072d2bb7df42aa3d44a14.zip
Some work on QFG1VGA (looks like a mix of SCI1 and SCI1.1)
svn-id: r42393
Diffstat (limited to 'engines/sci/resource.cpp')
-rw-r--r--engines/sci/resource.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp
index b425c23876..d99f9f0771 100644
--- a/engines/sci/resource.cpp
+++ b/engines/sci/resource.cpp
@@ -537,6 +537,12 @@ ResourceManager::ResourceManager(int version, int maxMemory) {
}
}
+ // Workaround for QFG1 VGA (has SCI 1.1 view data with SCI 1 compression)
+ if (version == SCI_VERSION_1 && !strcmp(((SciEngine*)g_engine)->getGameID(), "qfg1")) {
+ debug("Resmgr: Detected QFG1 VGA");
+ _isVGA = true;
+ }
+
_sciVersion = version;
// temporary version printout - should be reworked later
switch (_sciVersion) {
@@ -721,7 +727,7 @@ int ResourceManager::detectMapVersion() {
}
}
if (file.isOpen() == false) {
- warning("Failed to open resource map file");
+ error("Failed to open resource map file");
return SCI_VERSION_AUTODETECT;
}
// detection
@@ -801,7 +807,7 @@ int ResourceManager::detectVolVersion() {
}
}
if (file.isOpen() == false) {
- warning("Failed to open volume file");
+ error("Failed to open volume file");
return SCI_VERSION_AUTODETECT;
}
// SCI0 volume format: {wResId wPacked+4 wUnpacked wCompression} = 8 bytes