mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 02:44:56 +00:00
DREAMWEB: added close file
This commit is contained in:
parent
ab41fb783d
commit
6a33ce30f2
@ -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) {
|
||||
|
@ -79,6 +79,7 @@ public:
|
||||
|
||||
void openFile(const Common::String &name);
|
||||
void readFromFile(uint8 *dst, unsigned size);
|
||||
void closeFile();
|
||||
|
||||
private:
|
||||
const DreamWebGameDescription *_gameDescription;
|
||||
|
Loading…
x
Reference in New Issue
Block a user