diff options
author | Colin Snover | 2016-08-19 08:59:55 -0500 |
---|---|---|
committer | Colin Snover | 2016-08-19 15:23:10 -0500 |
commit | 0a4a2567a3b8f42f6aad9f03e7619bd88a25322d (patch) | |
tree | ffabc123910caf721044ffd4260338563bc370bc /engines/sci/resource.cpp | |
parent | 051eae46390fe7289365f68ea2321c098d60748a (diff) | |
download | scummvm-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.cpp | 11 |
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(); |