aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he/wiz_he.cpp
diff options
context:
space:
mode:
authorMax Horn2010-11-23 22:25:10 +0000
committerMax Horn2010-11-23 22:25:10 +0000
commit54e0390752b299d739daaf211e6b84b485738ada (patch)
treeb4ebfb49d0921d75b8d0719435607896cfe9d994 /engines/scumm/he/wiz_he.cpp
parent55e3ed001624df8b8222a1556a371aec8aab4983 (diff)
downloadscummvm-rg350-54e0390752b299d739daaf211e6b84b485738ada.tar.gz
scummvm-rg350-54e0390752b299d739daaf211e6b84b485738ada.tar.bz2
scummvm-rg350-54e0390752b299d739daaf211e6b84b485738ada.zip
SCUMM: Replace Common::File uses by SeekableReadStream and SearchMan
svn-id: r54434
Diffstat (limited to 'engines/scumm/he/wiz_he.cpp')
-rw-r--r--engines/scumm/he/wiz_he.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/scumm/he/wiz_he.cpp b/engines/scumm/he/wiz_he.cpp
index ddbbb2101f..807380272d 100644
--- a/engines/scumm/he/wiz_he.cpp
+++ b/engines/scumm/he/wiz_he.cpp
@@ -25,6 +25,7 @@
#ifdef ENABLE_HE
+#include "common/archive.h"
#include "common/system.h"
#include "graphics/cursorman.h"
#include "graphics/primitives.h"
@@ -2374,12 +2375,7 @@ void Wiz::processWizImage(const WizParameters *params) {
if (!_vm->_saveFileMan->listSavefiles(filename).empty()) {
f = _vm->_saveFileMan->openForLoading(filename);
} else {
- Common::File *nf = new Common::File();
- nf->open(filename);
- if (!nf->isOpen())
- delete nf;
- else
- f = nf;
+ f = SearchMan.createReadStreamForMember(filename);
}
if (f) {