aboutsummaryrefslogtreecommitdiff
path: root/common/system.h
diff options
context:
space:
mode:
authorMax Horn2008-07-30 15:38:42 +0000
committerMax Horn2008-07-30 15:38:42 +0000
commitfbe4f0dd48c290701532e39502551cd07d881dcb (patch)
treec6e1c4e5a8f8bc2b86f42b7025da109fbaff05c1 /common/system.h
parent04c05d3ca0717aea07fd3872b4ce54220a45b78f (diff)
downloadscummvm-rg350-fbe4f0dd48c290701532e39502551cd07d881dcb.tar.gz
scummvm-rg350-fbe4f0dd48c290701532e39502551cd07d881dcb.tar.bz2
scummvm-rg350-fbe4f0dd48c290701532e39502551cd07d881dcb.zip
Simplified advanced detector file sys scanning code
svn-id: r33455
Diffstat (limited to 'common/system.h')
-rw-r--r--common/system.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/common/system.h b/common/system.h
index b895a5cfba..501d0802fd 100644
--- a/common/system.h
+++ b/common/system.h
@@ -44,6 +44,8 @@ namespace Common {
class EventManager;
class SaveFileManager;
class TimerManager;
+ class SeekableReadStream;
+ class WriteStream;
}
class FilesystemFactory;
@@ -900,10 +902,25 @@ public:
/**
* Returns the FilesystemFactory object, depending on the current architecture.
*
- * @return FilesystemFactory* The specific factory for the current architecture.
+ * @return the FSNode factory for the current architecture
*/
virtual FilesystemFactory *getFilesystemFactory() = 0;
+ /**
+ * Open the default config file for reading, by returning a suitable
+ * ReadStream instance. It is the callers responsiblity to delete
+ * the stream after use.
+ */
+ virtual Common::SeekableReadStream *openConfigFileForReading();
+
+ /**
+ * Open the default config file for writing, by returning a suitable
+ * WriteStream instance. It is the callers responsiblity to delete
+ * the stream after use.
+ *
+ * May return 0 to indicate that writing to config file is not possible.
+ */
+ virtual Common::WriteStream *openConfigFileForWriting();
/**
* Return String which is used for backend-specific addition to theme