aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/BDiskFile.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-05-09 13:48:17 +0200
committerEinar Johan Trøan Sømåen2012-06-02 12:42:08 +0200
commit3a3304e324970032638b7a9eca9c264e26dc34c1 (patch)
tree5448313c15fd943be7b1db88f18963343d78265e /engines/wintermute/BDiskFile.cpp
parent28c78b956dac6ee59d066f7ff2499569fe9877c7 (diff)
downloadscummvm-rg350-3a3304e324970032638b7a9eca9c264e26dc34c1.tar.gz
scummvm-rg350-3a3304e324970032638b7a9eca9c264e26dc34c1.tar.bz2
scummvm-rg350-3a3304e324970032638b7a9eca9c264e26dc34c1.zip
WINTERMUTE: Make BPkgFile use zlib-streams and substreams.
Note that there is still much that could be simplified here by using substreams more extensively, instead of the specific WinterMute-solutions that are currently in place for dcp-files.
Diffstat (limited to 'engines/wintermute/BDiskFile.cpp')
-rw-r--r--engines/wintermute/BDiskFile.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/wintermute/BDiskFile.cpp b/engines/wintermute/BDiskFile.cpp
index 24c25f3bed..6e66bb721e 100644
--- a/engines/wintermute/BDiskFile.cpp
+++ b/engines/wintermute/BDiskFile.cpp
@@ -56,12 +56,13 @@ CBDiskFile::~CBDiskFile() {
HRESULT CBDiskFile::Open(Common::String Filename) {
Close();
+ warning("CBDiskFile::Open(%s)", Filename.c_str());
char FullPath[MAX_PATH];
for (int i = 0; i < Game->_fileManager->_singlePaths.GetSize(); i++) {
sprintf(FullPath, "%s%s", Game->_fileManager->_singlePaths[i], Filename.c_str());
CorrectSlashes(FullPath);
-
+ warning("CBDiskFile::Open - Attempting: %s", FullPath);
//_file = Common::createFileStream(FullPath);
Common::File *tempFile = new Common::File();
if(tempFile->open(FullPath)) {
@@ -79,6 +80,7 @@ HRESULT CBDiskFile::Open(Common::String Filename) {
if (!_file) {
strcpy(FullPath, Filename.c_str());
CorrectSlashes(FullPath);
+ warning("CBDiskFile::Open - Attempting2: %s", FullPath);
//error("Tried to open %s, TODO: add SearchMan-support", Filename.c_str());
//_file = Common::createFileStream(FullPath);
Common::File *tempFile = new Common::File();