aboutsummaryrefslogtreecommitdiff
path: root/sword2/resman.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-11-13 07:59:52 +0000
committerTorbjörn Andersson2003-11-13 07:59:52 +0000
commit66d9b4315a7dc84e9fe14cc6a464f4563b014661 (patch)
tree715b42fb624ddb7181bbdb30e49b06214db60477 /sword2/resman.h
parent80d60f29415fe781d3b13141c0315ce35d977200 (diff)
downloadscummvm-rg350-66d9b4315a7dc84e9fe14cc6a464f4563b014661.tar.gz
scummvm-rg350-66d9b4315a7dc84e9fe14cc6a464f4563b014661.tar.bz2
scummvm-rg350-66d9b4315a7dc84e9fe14cc6a464f4563b014661.zip
Re-enabled the CD swapping code, after rewriting it a bit.
If a cluster file isn't found the resource manager will first check if it's one of the files that it expects to find on the hard disk. If so, it's considered a fatal error. Otherwise it will present the user with an "Insert CD1" or "Insert CD2" message, just like the original did. Unlike the original, the user will have to press a button or click the mouse to indicate when he's done. I don't know if we even can detect the CD automatically in any portable way. As far as I can see, we'll need at least two separate path settings for this to actually work: one for the HD install directory, and one or two for the CDs. The file that are supposed to be found on the HD are only on one of the CDs, so the amount of CD swapping would probably be unbearable otherwise. As a consequence, I haven't actually tried running the game from CD yet. By the way, the old caching code has been removed completely now. All it did was to copy the cluster file to HD for faster access. ScummVM never did that, but so far no one has complained. svn-id: r11273
Diffstat (limited to 'sword2/resman.h')
-rw-r--r--sword2/resman.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/sword2/resman.h b/sword2/resman.h
index 85d334e644..d2e14d7130 100644
--- a/sword2/resman.h
+++ b/sword2/resman.h
@@ -100,13 +100,6 @@ private:
uint16 *_count;
char _resourceFiles[MAX_res_files][20];
uint8 _cdTab[MAX_res_files]; // Location of each cluster.
-
- // Drive letter of the CD-ROM drive or false CD path.
-
- char _cdPath[256];
-
- void cacheNewCluster(uint32 newCluster);
- char _cdDrives[24];
};
extern ResourceManager *res_man; // declare the object global