From 6a33ce30f2041743624bcc115c4d74be6c57b033 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Wed, 8 Jun 2011 01:51:01 +0400 Subject: DREAMWEB: added close file --- engines/dreamweb/dreamweb.cpp | 6 +++++- engines/dreamweb/dreamweb.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3