aboutsummaryrefslogtreecommitdiff
path: root/scumm/resource.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2005-01-29 17:58:47 +0000
committerEugene Sandulenko2005-01-29 17:58:47 +0000
commit66c524f0eec53790f9a8c88b58caa94dac677720 (patch)
treeb89519454e6bce19f802445fb5525d8a0e95ca3c /scumm/resource.cpp
parent04fc9fe6e744663fc9cc27c325be0a282b72ec3c (diff)
downloadscummvm-rg350-66c524f0eec53790f9a8c88b58caa94dac677720.tar.gz
scummvm-rg350-66c524f0eec53790f9a8c88b58caa94dac677720.tar.bz2
scummvm-rg350-66c524f0eec53790f9a8c88b58caa94dac677720.zip
Add support for Humongous Mac titles in native format. Please test :)
svn-id: r16693
Diffstat (limited to 'scumm/resource.cpp')
-rw-r--r--scumm/resource.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp
index 6e231f251e..97ebd26cb4 100644
--- a/scumm/resource.cpp
+++ b/scumm/resource.cpp
@@ -123,6 +123,16 @@ void ScummEngine::openRoom(int room) {
encByte = (_features & GF_USE_KEY) ? 0xFF : 0;
}
+ // If we have substitute
+ if (_heMacFileNameIndex > 0) {
+ char tmpBuf[128];
+
+ generateMacFileName(buf, tmpBuf, 128, 0, _heMacFileNameIndex);
+ strcpy(buf, tmpBuf);
+ generateMacFileName(buf2, tmpBuf, 128, 0, _heMacFileNameIndex);
+ strcpy(buf2, tmpBuf);
+ }
+
result = openResourceFile(buf, encByte);
if ((result == false) && (buf2[0])) {
result = openResourceFile(buf2, encByte);