aboutsummaryrefslogtreecommitdiff
path: root/engines/adl/adl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/adl/adl.cpp')
-rw-r--r--engines/adl/adl.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/adl/adl.cpp b/engines/adl/adl.cpp
index a17339f8ea..e25af25e32 100644
--- a/engines/adl/adl.cpp
+++ b/engines/adl/adl.cpp
@@ -85,12 +85,9 @@ Common::String AdlEngine::readStringAt(Common::SeekableReadStream &stream, uint
return readString(stream, until);
}
-Common::File *AdlEngine::openFile(const Common::String &name) const {
- Common::File *f = new Common::File();
- if (!f->open(name))
+void AdlEngine::openFile(Common::File &file, const Common::String &name) const {
+ if (!file.open(name))
error("Error opening '%s'", name.c_str());
-
- return f;
}
void AdlEngine::printMessage(uint idx, bool wait) const {