[Scummvm-cvs-logs] SF.net SVN: scummvm:[38614] scummvm/branches/branch-0-13-0/backends/fs/ symbian/symbian-fs.cpp

anotherguest at users.sourceforge.net anotherguest at users.sourceforge.net
Fri Feb 20 20:41:25 CET 2009


Revision: 38614
          http://scummvm.svn.sourceforge.net/scummvm/?rev=38614&view=rev
Author:   anotherguest
Date:     2009-02-20 19:41:24 +0000 (Fri, 20 Feb 2009)

Log Message:
-----------
Fix to be able to access gamefiles in the root folder of memorycard

Modified Paths:
--------------
    scummvm/branches/branch-0-13-0/backends/fs/symbian/symbian-fs.cpp

Modified: scummvm/branches/branch-0-13-0/backends/fs/symbian/symbian-fs.cpp
===================================================================
--- scummvm/branches/branch-0-13-0/backends/fs/symbian/symbian-fs.cpp	2009-02-20 19:32:27 UTC (rev 38613)
+++ scummvm/branches/branch-0-13-0/backends/fs/symbian/symbian-fs.cpp	2009-02-20 19:41:24 UTC (rev 38614)
@@ -66,6 +66,12 @@
 		TPtrC8 ptr((const unsigned char*) _path.c_str(), _path.size());
 		fname.Copy(ptr);
 		TBool fileExists = BaflUtils::FileExists(static_cast<OSystem_SDL_Symbian*> (g_system)->FsSession(), fname);
+		if(!fileExists) {
+			TParsePtrC parser(fname);
+			if(parser.PathPresent() && parser.Path().Compare(_L("\\")) == KErrNone && !parser.NameOrExtPresent()) {
+				fileExists = ETrue;
+			}
+		}
 		return fileExists;
 	}
 	virtual Common::String getDisplayName() const { return _displayName; }
@@ -130,6 +136,10 @@
 	} else {
 		_isValid = ETrue;
 		_isDirectory = EFalse;
+		TParsePtrC parser(fname);		
+		if(parser.PathPresent() && parser.Path().Compare(_L("\\")) == KErrNone && !parser.NameOrExtPresent())  {		
+			_isDirectory = ETrue;
+		}		
 	}
 }
 


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