SYMBIAN : Add addSysArchivesToSearchSet to support local data files properly. (Instead of using extrapath)

svn-id: r52864
This commit is contained in:
Lars Persson 2010-09-23 10:37:10 +00:00
parent 9e4dff9164
commit 3a3b2cf862
2 changed files with 9 additions and 3 deletions

View file

@ -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;
}