diff options
author | Filippos Karapetis | 2010-11-17 08:30:08 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-11-17 08:30:08 +0000 |
commit | 0470e47145b42a8e9af56c1553bc9944c6096cba (patch) | |
tree | e8978cae737cd7879b4582c4013338a7d3f46bdf /engines/sci/resource.cpp | |
parent | 553d571c5047327a75f99192142301e385e6ffe4 (diff) | |
download | scummvm-rg350-0470e47145b42a8e9af56c1553bc9944c6096cba.tar.gz scummvm-rg350-0470e47145b42a8e9af56c1553bc9944c6096cba.tar.bz2 scummvm-rg350-0470e47145b42a8e9af56c1553bc9944c6096cba.zip |
SCI: The heap was a separate resource in SCI1.1 - SCI2.1 games only. It was later
merged into the script files again in SCI3
svn-id: r54279
Diffstat (limited to 'engines/sci/resource.cpp')
-rw-r--r-- | engines/sci/resource.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index 0773357174..0be52834b9 100644 --- a/engines/sci/resource.cpp +++ b/engines/sci/resource.cpp @@ -2431,9 +2431,11 @@ Common::String ResourceManager::findSierraGameId() { if (getSciVersion() < SCI_VERSION_1_1) { heap = findResource(ResourceId(kResourceTypeScript, 0), false); - } else { + } else if (getSciVersion() >= SCI_VERSION_1_1 && getSciVersion() <= SCI_VERSION_2_1) { heap = findResource(ResourceId(kResourceTypeHeap, 0), false); nameSelector += 5; + } else if (getSciVersion() == SCI_VERSION_3) { + warning("TODO: findSierraGameId(): SCI3 equivalent"); } if (!heap) |