From 9eca2b4c549a6e20c351b6ced4442d36f7601964 Mon Sep 17 00:00:00 2001 From: lolbot-iichan Date: Sun, 14 Jul 2019 21:48:46 +0300 Subject: WINTERMUTE: Implement saving files using SavefileManager --- engines/wintermute/base/scriptables/script_ext_file.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines/wintermute/base/scriptables') 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+") -- cgit v1.2.3