aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/scriptables
diff options
context:
space:
mode:
authorlolbot-iichan2019-07-14 21:48:46 +0300
committerFilippos Karapetis2019-07-16 20:24:42 +0300
commit9eca2b4c549a6e20c351b6ced4442d36f7601964 (patch)
tree1fdf9d95498066d66ad13f32145f38224c3eb70b /engines/wintermute/base/scriptables
parenta96d127b1f07db20f66e74ae3011cc643ba7a9bd (diff)
downloadscummvm-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.cpp3
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+")