diff options
author | Max Horn | 2008-08-03 16:54:18 +0000 |
---|---|---|
committer | Max Horn | 2008-08-03 16:54:18 +0000 |
commit | 6377b8bdd570d3c23dbdc9239b844492f7e09b9d (patch) | |
tree | a87b115b3a8f2d925adb23d960ca9b4b53ee75c3 /common/config-manager.h | |
parent | 5dedf1bc435913a07c4f20d1816a9630d929eae5 (diff) | |
download | scummvm-rg350-6377b8bdd570d3c23dbdc9239b844492f7e09b9d.tar.gz scummvm-rg350-6377b8bdd570d3c23dbdc9239b844492f7e09b9d.tar.bz2 scummvm-rg350-6377b8bdd570d3c23dbdc9239b844492f7e09b9d.zip |
New OSystem API for loading/storing default config file
svn-id: r33584
Diffstat (limited to 'common/config-manager.h')
-rw-r--r-- | common/config-manager.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/common/config-manager.h b/common/config-manager.h index bebb59b539..9e5b88a073 100644 --- a/common/config-manager.h +++ b/common/config-manager.h @@ -36,7 +36,7 @@ namespace Common { class WriteStream; - +class SeekableReadStream; /** * The (singleton) configuration manager, used to query & set configuration @@ -144,19 +144,11 @@ public: bool hasGameDomain(const String &domName) const; const DomainMap & getGameDomains() const { return _gameDomains; } -/* - TODO: Callback/change notification system - typedef void (*ConfigCallback)(const ConstString &key, void *refCon); - - void registerCallback(ConfigCallback cfgc, void *refCon, const ConstString &key = String::emptyString) - void unregisterCallback(ConfigCallback cfgc, const ConstString &key = String::emptyString) -*/ - private: friend class Singleton<SingletonBaseType>; ConfigManager(); - void loadFile(const String &filename); + void loadFromStream(SeekableReadStream &stream); void writeDomain(WriteStream &stream, const String &name, const Domain &domain); Domain _transientDomain; |