aboutsummaryrefslogtreecommitdiff
path: root/saga/scene.cpp
diff options
context:
space:
mode:
authorAndrew Kurushin2005-08-04 14:49:04 +0000
committerAndrew Kurushin2005-08-04 14:49:04 +0000
commitb4bd032f544290c7257244df31e3b326519e7b29 (patch)
tree351b88690f5478f3840bd8eb9f67c8e95a4d637f /saga/scene.cpp
parent5fb85d659c4d09f1274fe94c27ebfe94d6a036b3 (diff)
downloadscummvm-rg350-b4bd032f544290c7257244df31e3b326519e7b29.tar.gz
scummvm-rg350-b4bd032f544290c7257244df31e3b326519e7b29.tar.bz2
scummvm-rg350-b4bd032f544290c7257244df31e3b326519e7b29.zip
fixed DUMMY resource in old mac cd
fixed intro voice at endscene svn-id: r18616
Diffstat (limited to 'saga/scene.cpp')
-rw-r--r--saga/scene.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/saga/scene.cpp b/saga/scene.cpp
index 9dc37c952d..2dc3365ac4 100644
--- a/saga/scene.cpp
+++ b/saga/scene.cpp
@@ -633,6 +633,14 @@ void Scene::loadScene(LoadSceneParams *loadSceneParams) {
if (!_resourceList[i].invalid) {
_vm->_resource->loadResource(_sceneContext, _resourceList[i].resourceId,
_resourceList[i].buffer, _resourceList[i].size);
+
+
+ if (_resourceList[i].size >= 6) {
+ if (!memcmp(_resourceList[i].buffer, "DUMMY!", 6)) {
+ _resourceList[i].invalid = true;
+ warning("DUMMY resource %i", _resourceList[i].resourceId);
+ }
+ }
}
}