diff options
author | Lars Persson | 2010-09-23 10:37:10 +0000 |
---|---|---|
committer | Lars Persson | 2010-09-23 10:37:10 +0000 |
commit | 3a3b2cf8623b0da297a0dca906ca032379b202ff (patch) | |
tree | 8b595e83442acfea904815c2d84b00a6e91b53d7 /backends/platform | |
parent | 9e4dff91641e32c83f4eb0da4858ea467e634a5b (diff) | |
download | scummvm-rg350-3a3b2cf8623b0da297a0dca906ca032379b202ff.tar.gz scummvm-rg350-3a3b2cf8623b0da297a0dca906ca032379b202ff.tar.bz2 scummvm-rg350-3a3b2cf8623b0da297a0dca906ca032379b202ff.zip |
SYMBIAN : Add addSysArchivesToSearchSet to support local data files properly. (Instead of using extrapath)
svn-id: r52864
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/symbian/src/SymbianOS.cpp | 10 | ||||
-rw-r--r-- | backends/platform/symbian/src/SymbianOS.h | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/backends/platform/symbian/src/SymbianOS.cpp b/backends/platform/symbian/src/SymbianOS.cpp index d63c9fe044..50ab7e00b1 100644 --- a/backends/platform/symbian/src/SymbianOS.cpp +++ b/backends/platform/symbian/src/SymbianOS.cpp @@ -140,9 +140,6 @@ OSystem_SDL_Symbian::OSystem_SDL_Symbian() :_channels(0),_stereo_mix_buffer(0) { } void OSystem_SDL_Symbian::initBackend() { - // First set the extrapath (for installed dat files etc) - ConfMan.set("extrapath", Symbian::GetExecutablePath()); - // Calculate the default savepath Common::String savePath; savePath = Symbian::GetExecutablePath(); @@ -183,6 +180,13 @@ void OSystem_SDL_Symbian::initBackend() { initZones(); } +void OSystem_SDL_Symbian::addSysArchivesToSearchSet(Common::SearchSet &s, int priority) { + Common::FSNode pluginsNode(Symbian::GetExecutablePath()); + if (pluginsNode.exists() && pluginsNode.isDirectory()) { + s.add("SYMBIAN_DATAFOLDER", new Common::FSDirectory(Symbian::GetExecutablePath()), priority); + } +} + OSystem_SDL_Symbian::~OSystem_SDL_Symbian() { delete[] _stereo_mix_buffer; } diff --git a/backends/platform/symbian/src/SymbianOS.h b/backends/platform/symbian/src/SymbianOS.h index 42929f8029..72ff70c25e 100644 --- a/backends/platform/symbian/src/SymbianOS.h +++ b/backends/platform/symbian/src/SymbianOS.h @@ -61,6 +61,8 @@ public: // Returns reference to File session RFs& FsSession(); + + void addSysArchivesToSearchSet(Common::SearchSet &s, int priority = 0); protected: // // The mixer callback function. |