aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoost Peters2006-05-28 21:35:35 +0000
committerJoost Peters2006-05-28 21:35:35 +0000
commit8c1d71851a9afc4208bc3d4a04cdf0ccd7cb5545 (patch)
tree64d46d36773c89dca5fea8735b02e9cecbf10596
parentbc5b877aa9fbba3653df1c4ffa593bf87e3ec2aa (diff)
downloadscummvm-rg350-8c1d71851a9afc4208bc3d4a04cdf0ccd7cb5545.tar.gz
scummvm-rg350-8c1d71851a9afc4208bc3d4a04cdf0ccd7cb5545.tar.bz2
scummvm-rg350-8c1d71851a9afc4208bc3d4a04cdf0ccd7cb5545.zip
make getNodeForPath() use the proper PSPFilesystemNode ctor (and remove the old, now unused, one).
svn-id: r22726
-rw-r--r--backends/fs/psp/psp_fs.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/backends/fs/psp/psp_fs.cpp b/backends/fs/psp/psp_fs.cpp
index 582740eae4..5172444d4a 100644
--- a/backends/fs/psp/psp_fs.cpp
+++ b/backends/fs/psp/psp_fs.cpp
@@ -46,7 +46,6 @@ protected:
public:
PSPFilesystemNode();
- PSPFilesystemNode(const String &path);
PSPFilesystemNode(const Common::String &p, bool verify);
virtual String displayName() const { return _displayName; }
@@ -75,13 +74,6 @@ PSPFilesystemNode::PSPFilesystemNode() {
_isPseudoRoot = true;
}
-PSPFilesystemNode::PSPFilesystemNode(const Common::String &p) {
- _displayName = p;
- _isValid = true;
- _isDirectory = true;
- _path = p;
-}
-
PSPFilesystemNode::PSPFilesystemNode(const Common::String &p, bool verify) {
assert(p.size() > 0);
@@ -98,7 +90,7 @@ PSPFilesystemNode::PSPFilesystemNode(const Common::String &p, bool verify) {
}
AbstractFilesystemNode *AbstractFilesystemNode::getNodeForPath(const String &path) {
- return new PSPFilesystemNode(path);
+ return new PSPFilesystemNode(path, true);
}