[Scummvm-cvs-logs] CVS: scummvm/backends/fs/symbian symbian-fs.cpp,1.3,1.4
Lars Persson
anotherguest at users.sourceforge.net
Sun Oct 2 14:28:39 CEST 2005
Update of /cvsroot/scummvm/scummvm/backends/fs/symbian
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19164/backends/fs/symbian
Modified Files:
symbian-fs.cpp
Log Message:
Update Symbian README, default Joystick config is on, Updated pkg files for S80 & S90, updated symbian-fs (cleaner code)
Index: symbian-fs.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/fs/symbian/symbian-fs.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- symbian-fs.cpp 30 Jul 2005 21:10:52 -0000 1.3
+++ symbian-fs.cpp 1 Oct 2005 18:02:37 -0000 1.4
@@ -21,15 +21,11 @@
* $Header$
*/
-#if defined (__SYMBIAN32__)
+#if defined (__SYMBIAN32__)
#include "common/stdafx.h"
#include "../fs.h"
-//#include <sys/param.h>
-//#include <sys/stat.h>
#include <dirent.h>
-//#include <stdio.h>
-//#include <unistd.h>
#include <eikenv.h>
#include <f32file.h>
@@ -62,11 +58,11 @@
static const char *lastPathComponent(const Common::String &str) {
const char *start = str.c_str();
const char *cur = start + str.size() - 2;
-
+
while (cur > start && *cur != '\\') {
--cur;
}
-
+
return cur+1;
}
@@ -88,7 +84,7 @@
}
// SumthinWicked says: added next function myself, since it was not in 0.7.1.
-// might still be a little buggy, or simply the reason ScummVM can't run any
+// might still be a little buggy, or simply the reason ScummVM can't run any
// games on the phone yet :P
SymbianFilesystemNode::SymbianFilesystemNode(const String &path) {
if (path.size() == 0)
@@ -121,7 +117,7 @@
CEikonEnv::Static()->FsSession().DriveList(drivelist);
for (int loop=0;loop<KMaxDrives;loop++) {
if(drivelist[loop]>0) {
- SymbianFilesystemNode entry(false);
+ SymbianFilesystemNode entry(false);
char drive_name[2];
drive_name[0] = loop+'A';
drive_name[1] = '\0';
@@ -149,17 +145,17 @@
nameBuf.Copy(fileentry.iName);
SymbianFilesystemNode entry(false);
entry._isPseudoRoot = false;
-
+
entry._displayName =(char*)nameBuf.PtrZ();
entry._path = _path;
entry._path +=(char*)nameBuf.PtrZ();
entry._isDirectory = fileentry.IsDir();
-
+
// Honor the chosen mode
if ((mode == kListFilesOnly && entry._isDirectory) ||
(mode == kListDirectoriesOnly && !entry._isDirectory))
continue;
-
+
if (entry._isDirectory)
entry._path += "\\";
myList.push_back(wrap(new SymbianFilesystemNode(&entry)));
More information about the Scummvm-git-logs
mailing list