DREAMWEB: added close file

This commit is contained in:
Vladimir 2011-06-08 01:51:01 +04:00 committed by Alyssa Milburn
parent ab41fb783d
commit 6a33ce30f2
2 changed files with 6 additions and 1 deletions

View File

@ -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) {

View File

@ -79,6 +79,7 @@ public:
void openFile(const Common::String &name);
void readFromFile(uint8 *dst, unsigned size);
void closeFile();
private:
const DreamWebGameDescription *_gameDescription;