diff options
author | Vladimir | 2011-06-08 01:51:01 +0400 |
---|---|---|
committer | Alyssa Milburn | 2011-06-15 17:32:23 +0200 |
commit | 6a33ce30f2041743624bcc115c4d74be6c57b033 (patch) | |
tree | 85371f0ee7132a9e533f6716fda87ec1da67056e | |
parent | ab41fb783de0323e333623411f7915eb110e6fac (diff) | |
download | scummvm-rg350-6a33ce30f2041743624bcc115c4d74be6c57b033.tar.gz scummvm-rg350-6a33ce30f2041743624bcc115c4d74be6c57b033.tar.bz2 scummvm-rg350-6a33ce30f2041743624bcc115c4d74be6c57b033.zip |
DREAMWEB: added close file
-rw-r--r-- | engines/dreamweb/dreamweb.cpp | 6 | ||||
-rw-r--r-- | engines/dreamweb/dreamweb.h | 1 |
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; |