aboutsummaryrefslogtreecommitdiff
path: root/backends/gp32
diff options
context:
space:
mode:
authorMax Horn2006-05-12 21:41:54 +0000
committerMax Horn2006-05-12 21:41:54 +0000
commit3623a94927a3d01b6df5c75f42af13a348327c2a (patch)
tree6c6109147fdbf77457c7b107e3d494fc5a66332c /backends/gp32
parented339aa771fa7f47a737c0599197dbe205804338 (diff)
downloadscummvm-rg350-3623a94927a3d01b6df5c75f42af13a348327c2a.tar.gz
scummvm-rg350-3623a94927a3d01b6df5c75f42af13a348327c2a.tar.bz2
scummvm-rg350-3623a94927a3d01b6df5c75f42af13a348327c2a.zip
Added the new AbstractFilesystemNode::getCurrentDirectory() method. Also changed the semantics of the FilesystemNode constructors (see also the relevant doxygen comments for explanations). This also fixes bug #1485941.
svn-id: r22424
Diffstat (limited to 'backends/gp32')
-rw-r--r--backends/gp32/gp-fs.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/backends/gp32/gp-fs.cpp b/backends/gp32/gp-fs.cpp
index df056c570e..8dfa1e8c03 100644
--- a/backends/gp32/gp-fs.cpp
+++ b/backends/gp32/gp-fs.cpp
@@ -36,7 +36,7 @@ protected:
String _path;
public:
- GP32FilesystemNode(void);
+ GP32FilesystemNode();
GP32FilesystemNode(const String &path);
virtual String displayName() const { return _displayName; }
@@ -48,15 +48,19 @@ public:
virtual AbstractFilesystemNode *parent() const;
};
-AbstractFilesystemNode *FilesystemNode::getRoot(void) {
+AbstractFilesystemNode *AbstractFilesystemNode::getCurrentDirectory() {
+ return AbstractFilesystemNode::getRoot();
+}
+
+AbstractFilesystemNode *AbstractFilesystemNode::getRoot() {
return new GP32FilesystemNode();
}
-AbstractFilesystemNode *FilesystemNode::getNodeForPath(const String &path) {
+AbstractFilesystemNode *AbstractFilesystemNode::getNodeForPath(const String &path) {
return new GP32FilesystemNode(path);
}
-GP32FilesystemNode::GP32FilesystemNode(void) {
+GP32FilesystemNode::GP32FilesystemNode() {
_isDirectory = true;
_isRoot = true;
_displayName = "GP32 Root";