Add support for Humongous Mac titles in native format. Please test :)

svn-id: r16693
This commit is contained in:
Eugene Sandulenko 2005-01-29 17:58:47 +00:00
parent 04fc9fe6e7
commit 66c524f0ee
6 changed files with 79 additions and 9 deletions

View file

@ -1547,6 +1547,13 @@ void ScummEngine_v72he::o72_openFile() {
sprintf((char *)filename, "%s.he9", _gameName.c_str());
}
if (_heMacFileNameIndex > 0) {
char buf1[128];
generateMacFileName((char *)filename, buf1, 128, 0, _heMacFileNameIndex);
strcpy((char *)filename, buf1);
}
for (r = strlen((char*)filename); r != 0; r--) {
if (filename[r - 1] == '\\')
break;