aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/dreamweb/dreamweb.cpp6
-rw-r--r--engines/dreamweb/dreamweb.h1
2 files changed, 6 insertions, 1 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp
index fed8a802bc..6938423c69 100644
--- a/engines/dreamweb/dreamweb.cpp
+++ b/engines/dreamweb/dreamweb.cpp
@@ -147,6 +147,10 @@ void DreamWebEngine::readFromFile(uint8 *dst, unsigned size) {
_file.read(dst, size);
}
+void DreamWebEngine::closeFile() {
+ _file.close();
+}
+
} // End of namespace DreamWeb
@@ -198,7 +202,7 @@ void readfromfile(Context &context) {
}
void closefile(Context &context) {
- ::error("closefile");
+ engine()->closeFile();
}
void openforsave(Context &context) {
diff --git a/engines/dreamweb/dreamweb.h b/engines/dreamweb/dreamweb.h
index cba1b00051..03db193b23 100644
--- a/engines/dreamweb/dreamweb.h
+++ b/engines/dreamweb/dreamweb.h
@@ -79,6 +79,7 @@ public:
void openFile(const Common::String &name);
void readFromFile(uint8 *dst, unsigned size);
+ void closeFile();
private:
const DreamWebGameDescription *_gameDescription;