[Scummvm-cvs-logs] SF.net SVN: scummvm:[38536] scummvm/trunk/backends/fs/symbian/symbian-fs. cpp

anotherguest at users.sourceforge.net anotherguest at users.sourceforge.net
Thu Feb 19 09:18:50 CET 2009


Revision: 38536
          http://scummvm.svn.sourceforge.net/scummvm/?rev=38536&view=rev
Author:   anotherguest
Date:     2009-02-19 08:18:50 +0000 (Thu, 19 Feb 2009)

Log Message:
-----------
Updated so z:\ paths will be reported properly as a directory and valid path.

Modified Paths:
--------------
    scummvm/trunk/backends/fs/symbian/symbian-fs.cpp

Modified: scummvm/trunk/backends/fs/symbian/symbian-fs.cpp
===================================================================
--- scummvm/trunk/backends/fs/symbian/symbian-fs.cpp	2009-02-19 04:16:20 UTC (rev 38535)
+++ scummvm/trunk/backends/fs/symbian/symbian-fs.cpp	2009-02-19 08:18:50 UTC (rev 38536)
@@ -66,6 +66,13 @@
 		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 +137,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