diff options
author | Max Horn | 2011-06-06 15:30:21 +0200 |
---|---|---|
committer | Max Horn | 2011-06-06 15:30:21 +0200 |
commit | c8475224221ed14590ad08929a1cadd6e8e3cc4e (patch) | |
tree | 54c3bd35cd63e81246b10ff9213217335f928118 /backends/platform/null/null.cpp | |
parent | afb06b51cceb96cf3ac2baae1f562c673114d108 (diff) | |
download | scummvm-rg350-c8475224221ed14590ad08929a1cadd6e8e3cc4e.tar.gz scummvm-rg350-c8475224221ed14590ad08929a1cadd6e8e3cc4e.tar.bz2 scummvm-rg350-c8475224221ed14590ad08929a1cadd6e8e3cc4e.zip |
BACKENDS: Add OSystem::getDefaultConfigFileName
This is used to provide default implementations for createConfigWriteStream
and createConfigReadStream, which can be used by most backends.
Note that backends can still override createConfigRead/WriteStream;
this could be useful if settings on some port are not stored in a
regular file (think 'Windows registry', for a hypothetical example).
Diffstat (limited to 'backends/platform/null/null.cpp')
-rw-r--r-- | backends/platform/null/null.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/backends/platform/null/null.cpp b/backends/platform/null/null.cpp index 207453ad0d..e46ff9c4db 100644 --- a/backends/platform/null/null.cpp +++ b/backends/platform/null/null.cpp @@ -52,9 +52,6 @@ public: virtual uint32 getMillis(); virtual void delayMillis(uint msecs); virtual void getTimeAndDate(TimeDate &t) const {} - - virtual Common::SeekableReadStream *createConfigReadStream(); - virtual Common::WriteStream *createConfigWriteStream(); }; OSystem_NULL::OSystem_NULL() { @@ -100,18 +97,6 @@ uint32 OSystem_NULL::getMillis() { void OSystem_NULL::delayMillis(uint msecs) { } -#define DEFAULT_CONFIG_FILE "scummvm.ini" - -Common::SeekableReadStream *OSystem_NULL::createConfigReadStream() { - Common::FSNode file(DEFAULT_CONFIG_FILE); - return file.createReadStream(); -} - -Common::WriteStream *OSystem_NULL::createConfigWriteStream() { - Common::FSNode file(DEFAULT_CONFIG_FILE); - return file.createWriteStream(); -} - OSystem *OSystem_NULL_create() { return new OSystem_NULL(); } |