diff options
author | lolbot-iichan | 2019-07-14 21:48:46 +0300 |
---|---|---|
committer | Filippos Karapetis | 2019-07-16 20:24:42 +0300 |
commit | 9eca2b4c549a6e20c351b6ced4442d36f7601964 (patch) | |
tree | 1fdf9d95498066d66ad13f32145f38224c3eb70b /engines/wintermute/base/scriptables | |
parent | a96d127b1f07db20f66e74ae3011cc643ba7a9bd (diff) | |
download | scummvm-rg350-9eca2b4c549a6e20c351b6ced4442d36f7601964.tar.gz scummvm-rg350-9eca2b4c549a6e20c351b6ced4442d36f7601964.tar.bz2 scummvm-rg350-9eca2b4c549a6e20c351b6ced4442d36f7601964.zip |
WINTERMUTE: Implement saving files using SavefileManager
Diffstat (limited to 'engines/wintermute/base/scriptables')
-rw-r--r-- | engines/wintermute/base/scriptables/script_ext_file.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/wintermute/base/scriptables/script_ext_file.cpp b/engines/wintermute/base/scriptables/script_ext_file.cpp index 15ddd4bcca..daded7057c 100644 --- a/engines/wintermute/base/scriptables/script_ext_file.cpp +++ b/engines/wintermute/base/scriptables/script_ext_file.cpp @@ -815,9 +815,8 @@ bool SXFile::persist(BasePersistenceManager *persistMgr) { return STATUS_OK; } -// Should replace fopen(..., "wb+") and fopen(..., "w+") Common::WriteStream *SXFile::openForWrite(const Common::String &filename, bool binary) { - error("SXFile::openForWrite - WriteFiles not supported"); + return BaseFileManager::getEngineInstance()->openFileForWrite(_filename); } // Should replace fopen(..., "ab+") and fopen(..., "a+") |