aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/files.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/xeen/files.cpp')
-rw-r--r--engines/xeen/files.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/xeen/files.cpp b/engines/xeen/files.cpp
index d63c63d651..a889cfb95e 100644
--- a/engines/xeen/files.cpp
+++ b/engines/xeen/files.cpp
@@ -436,11 +436,21 @@ void SaveArchive::reset(CCArchive *src) {
/*------------------------------------------------------------------------*/
-OutFile::OutFile(const Common::String filename) :
+OutFile::OutFile(const Common::String &filename) :
_filename(filename), _backingStream(DisposeAfterUse::YES) {
_archive = File::_currentSave;
}
+OutFile::OutFile(const Common::String &filename, SaveArchive *archive) :
+ _filename(filename), _archive(archive), _backingStream(DisposeAfterUse::YES) {
+}
+
+OutFile::OutFile(const Common::String &filename, int ccMode) :
+ _filename(filename), _backingStream(DisposeAfterUse::YES) {
+ g_vm->_files->setGameCc(ccMode);
+ _archive = File::_currentSave;
+}
+
uint32 OutFile::write(const void *dataPtr, uint32 dataSize) {
return _backingStream.write(dataPtr, dataSize);
}