aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/scriptables/script_ext_file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/base/scriptables/script_ext_file.cpp')
-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+")