diff options
author | Paul Gilbert | 2009-04-25 06:42:01 +0000 |
---|---|---|
committer | Paul Gilbert | 2009-04-25 06:42:01 +0000 |
commit | 86debbd679d20f1188d2ba015e9d108cbbc85f1a (patch) | |
tree | 4e5c7d2f55b13ca579d3be87ce483f1ae888544e /engines/tinsel/handle.cpp | |
parent | d594211ab3fe8782dc1f01e8a8730f109dfa5a92 (diff) | |
download | scummvm-rg350-86debbd679d20f1188d2ba015e9d108cbbc85f1a.tar.gz scummvm-rg350-86debbd679d20f1188d2ba015e9d108cbbc85f1a.tar.bz2 scummvm-rg350-86debbd679d20f1188d2ba015e9d108cbbc85f1a.zip |
Added code to enable Discworld 2 to play directly from the CD (only the first CD - Cd swap still doesn't work) or from files copied to the hard disk without the .smp/txt/idx files being properly renamed (again only for the first Cd).
svn-id: r40141
Diffstat (limited to 'engines/tinsel/handle.cpp')
-rw-r--r-- | engines/tinsel/handle.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/tinsel/handle.cpp b/engines/tinsel/handle.cpp index f3ef9b3e4b..cfe91f7216 100644 --- a/engines/tinsel/handle.cpp +++ b/engines/tinsel/handle.cpp @@ -420,6 +420,10 @@ byte *LockMem(SCNHANDLE offset) { if (pH->pNode->pBaseAddr == NULL) error("Out of memory"); + if (TinselV2) { + SetCD(pH->flags2 & fAllCds); + CdCD(nullContext); + } LoadFile(pH, true); // make sure address is valid |