aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb
diff options
context:
space:
mode:
authorVladimir2011-06-08 01:51:01 +0400
committerAlyssa Milburn2011-06-15 17:32:23 +0200
commit6a33ce30f2041743624bcc115c4d74be6c57b033 (patch)
tree85371f0ee7132a9e533f6716fda87ec1da67056e /engines/dreamweb
parentab41fb783de0323e333623411f7915eb110e6fac (diff)
downloadscummvm-rg350-6a33ce30f2041743624bcc115c4d74be6c57b033.tar.gz
scummvm-rg350-6a33ce30f2041743624bcc115c4d74be6c57b033.tar.bz2
scummvm-rg350-6a33ce30f2041743624bcc115c4d74be6c57b033.zip
DREAMWEB: added close file
Diffstat (limited to 'engines/dreamweb')
-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;