From 38a44f85ae9c897c24d7e6ccbc165021ec191330 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 7 Sep 2008 21:30:55 +0000 Subject: Added new OSystem method addSysArchivesToSearchSet() [better name pending, suggestions welcome] svn-id: r34424 --- common/system.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'common') diff --git a/common/system.h b/common/system.h index 501d0802fd..b0e3e8ce14 100644 --- a/common/system.h +++ b/common/system.h @@ -43,6 +43,7 @@ namespace Common { struct Event; class EventManager; class SaveFileManager; + class SearchSet; class TimerManager; class SeekableReadStream; class WriteStream; @@ -906,6 +907,17 @@ public: */ virtual FilesystemFactory *getFilesystemFactory() = 0; + /** + * Add system specific Common::Archive objects to the given SearchSet. + * E.g. on Unix the dir corresponding to DATA_PATH (if set), or on + * Mac OS X the 'Resource' dir in the app bundle. + * + * @todo Come up with a better name. This one sucks. + * + * @todo Allow specifying a priority with which the new dirs are added? + */ + virtual void addSysArchivesToSearchSet(Common::SearchSet &s) {} + /** * Open the default config file for reading, by returning a suitable * ReadStream instance. It is the callers responsiblity to delete -- cgit v1.2.3