aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/resource.cpp
diff options
context:
space:
mode:
authorColin Snover2016-08-19 08:59:55 -0500
committerColin Snover2016-08-19 15:23:10 -0500
commit0a4a2567a3b8f42f6aad9f03e7619bd88a25322d (patch)
treeffabc123910caf721044ffd4260338563bc370bc /engines/sci/resource.cpp
parent051eae46390fe7289365f68ea2321c098d60748a (diff)
downloadscummvm-rg350-0a4a2567a3b8f42f6aad9f03e7619bd88a25322d.tar.gz
scummvm-rg350-0a4a2567a3b8f42f6aad9f03e7619bd88a25322d.tar.bz2
scummvm-rg350-0a4a2567a3b8f42f6aad9f03e7619bd88a25322d.zip
SCI32: Partially implement kCD
Diffstat (limited to 'engines/sci/resource.cpp')
-rw-r--r--engines/sci/resource.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp
index 48278e35a7..26b8a32861 100644
--- a/engines/sci/resource.cpp
+++ b/engines/sci/resource.cpp
@@ -859,6 +859,13 @@ void ResourceManager::addResourcesFromChunk(uint16 id) {
scanNewSources();
}
+void ResourceManager::findDisc(const int16 discNo) {
+ // Since all resources are expected to be copied from the original discs
+ // into a single game directory, this call just records the number of the CD
+ // that the game has requested
+ _currentDiscNo = discNo;
+}
+
#endif
void ResourceManager::freeResourceSources() {
@@ -878,7 +885,9 @@ void ResourceManager::init() {
_LRU.clear();
_resMap.clear();
_audioMapSCI1 = NULL;
-
+#ifdef ENABLE_SCI32
+ _currentDiscNo = 1;
+#endif
// FIXME: put this in an Init() function, so that we can error out if detection fails completely
_mapVersion = detectMapVersion();