aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/ps2/ps2-fs-factory.cpp
diff options
context:
space:
mode:
authorRobert Göffringmann2008-03-03 00:41:59 +0000
committerRobert Göffringmann2008-03-03 00:41:59 +0000
commit3b27b9fa438611c3a05fcf2d07a3dfde6be192fa (patch)
tree8605c47d67b779fb33ce4dda3a64a7d3caecdb4d /backends/fs/ps2/ps2-fs-factory.cpp
parentfc91de07dfdfe6bd29edadf739f324f30f5624d0 (diff)
downloadscummvm-rg350-3b27b9fa438611c3a05fcf2d07a3dfde6be192fa.tar.gz
scummvm-rg350-3b27b9fa438611c3a05fcf2d07a3dfde6be192fa.tar.bz2
scummvm-rg350-3b27b9fa438611c3a05fcf2d07a3dfde6be192fa.zip
the ps2 changes from the 0.11.1 release, plus some bugfixes and cleanup.
svn-id: r31034
Diffstat (limited to 'backends/fs/ps2/ps2-fs-factory.cpp')
-rw-r--r--backends/fs/ps2/ps2-fs-factory.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/backends/fs/ps2/ps2-fs-factory.cpp b/backends/fs/ps2/ps2-fs-factory.cpp
index 7585e4f20a..b960e39a24 100644
--- a/backends/fs/ps2/ps2-fs-factory.cpp
+++ b/backends/fs/ps2/ps2-fs-factory.cpp
@@ -22,7 +22,6 @@
* $Id$
*/
-#if defined(__PLAYSTATION2__)
#include "backends/fs/ps2/ps2-fs-factory.h"
#include "backends/fs/ps2/ps2-fs.cpp"
@@ -37,6 +36,17 @@ AbstractFilesystemNode *Ps2FilesystemFactory::makeCurrentDirectoryFileNode() con
}
AbstractFilesystemNode *Ps2FilesystemFactory::makeFileNodePath(const String &path) const {
- return new Ps2FilesystemNode(path);
+ // return new Ps2FilesystemNode(path);
+
+ Ps2FilesystemNode *nf = new Ps2FilesystemNode(path, true);
+/*
+ int fd = fio.dopen(path.c_str());
+ if (fd < 0) {
+ nf->_isDirectory = false;
+ }
+ else {
+ fio.dclose(fd);
+ }
+*/
+ return nf; // new Ps2FilesystemNode(path, true);
}
-#endif