[Scummvm-cvs-logs] SF.net SVN: scummvm:[52864] scummvm/trunk/backends/platform/symbian/src
anotherguest at users.sourceforge.net
anotherguest at users.sourceforge.net
Thu Sep 23 12:37:11 CEST 2010
Revision: 52864
http://scummvm.svn.sourceforge.net/scummvm/?rev=52864&view=rev
Author: anotherguest
Date: 2010-09-23 10:37:10 +0000 (Thu, 23 Sep 2010)
Log Message:
-----------
SYMBIAN : Add addSysArchivesToSearchSet to support local data files properly. (Instead of using extrapath)
Modified Paths:
--------------
scummvm/trunk/backends/platform/symbian/src/SymbianOS.cpp
scummvm/trunk/backends/platform/symbian/src/SymbianOS.h
Modified: scummvm/trunk/backends/platform/symbian/src/SymbianOS.cpp
===================================================================
--- scummvm/trunk/backends/platform/symbian/src/SymbianOS.cpp 2010-09-23 10:34:45 UTC (rev 52863)
+++ scummvm/trunk/backends/platform/symbian/src/SymbianOS.cpp 2010-09-23 10:37:10 UTC (rev 52864)
@@ -140,9 +140,6 @@
}
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 @@
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;
}
Modified: scummvm/trunk/backends/platform/symbian/src/SymbianOS.h
===================================================================
--- scummvm/trunk/backends/platform/symbian/src/SymbianOS.h 2010-09-23 10:34:45 UTC (rev 52863)
+++ scummvm/trunk/backends/platform/symbian/src/SymbianOS.h 2010-09-23 10:37:10 UTC (rev 52864)
@@ -61,6 +61,8 @@
// Returns reference to File session
RFs& FsSession();
+
+ void addSysArchivesToSearchSet(Common::SearchSet &s, int priority = 0);
protected:
//
// The mixer callback function.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list