[Scummvm-cvs-logs] SF.net SVN: scummvm: [30446] scummvm/branches/branch-0-11-0/backends/fs/ds/ ds-fs.cpp
agent-q at users.sourceforge.net
agent-q at users.sourceforge.net
Sat Jan 12 18:06:51 CET 2008
Revision: 30446
http://scummvm.svn.sourceforge.net/scummvm/?rev=30446&view=rev
Author: agent-q
Date: 2008-01-12 09:06:51 -0800 (Sat, 12 Jan 2008)
Log Message:
-----------
Removing debug printfs.
Modified Paths:
--------------
scummvm/branches/branch-0-11-0/backends/fs/ds/ds-fs.cpp
Modified: scummvm/branches/branch-0-11-0/backends/fs/ds/ds-fs.cpp
===================================================================
--- scummvm/branches/branch-0-11-0/backends/fs/ds/ds-fs.cpp 2008-01-12 17:06:08 UTC (rev 30445)
+++ scummvm/branches/branch-0-11-0/backends/fs/ds/ds-fs.cpp 2008-01-12 17:06:51 UTC (rev 30446)
@@ -306,7 +306,7 @@
pathTemp++;
}
- consolePrintf("This dir: %s\n", path);
+// consolePrintf("This dir: %s\n", path);
FAT_chdir(path);
int entryType = FAT_FindFirstFileLFN(fname);
@@ -317,7 +317,7 @@
|| ((entryType == TYPE_FILE) && ((mode == FilesystemNode::kListFilesOnly) || (mode == FilesystemNode::kListAll))) ) {
GBAMPFileSystemNode* dsfsn;
- consolePrintf("Fname: %s\n", fname);
+// consolePrintf("Fname: %s\n", fname);
if (strcmp(fname, ".") && strcmp(fname, "..")) {
@@ -399,11 +399,27 @@
if (DS::isGBAMPAvailable()) {
FAT_chdir("/");
+ // Turn all back slashes into forward slashes for gba_nds_fat
char* p = realName;
while (*p) {
if (*p == '\\') *p = '/';
p++;
}
+
+ // Remove double slashes if present
+/* p = realName;
+ while (*p) {
+ if ((*p == '/') && (*(p + 1) == '/')) {
+ char* t = p;
+ while (t) {
+ *t = *(t + 1);
+ t++;
+ }
+ }
+
+ p++;
+ }*/
+
FAT_FILE* result = FAT_fopen(realName, mode);
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