aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/palmos
diff options
context:
space:
mode:
authorMax Horn2006-07-22 14:14:16 +0000
committerMax Horn2006-07-22 14:14:16 +0000
commit6ed00cd055abcc98b8ad5d4e2ac6396852ec9c95 (patch)
treea3f1c83c0bc528f22576bd3f523af49f2a805460 /backends/fs/palmos
parent42cebc00dcb5c274c96f69bb2658906d1ce269ec (diff)
downloadscummvm-rg350-6ed00cd055abcc98b8ad5d4e2ac6396852ec9c95.tar.gz
scummvm-rg350-6ed00cd055abcc98b8ad5d4e2ac6396852ec9c95.tar.bz2
scummvm-rg350-6ed00cd055abcc98b8ad5d4e2ac6396852ec9c95.zip
Added FilesystemNode::name method
svn-id: r23553
Diffstat (limited to 'backends/fs/palmos')
-rw-r--r--backends/fs/palmos/palmos-fs.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/backends/fs/palmos/palmos-fs.cpp b/backends/fs/palmos/palmos-fs.cpp
index 6163689e63..afdf26a4f5 100644
--- a/backends/fs/palmos/palmos-fs.cpp
+++ b/backends/fs/palmos/palmos-fs.cpp
@@ -44,13 +44,14 @@ public:
PalmOSFilesystemNode(const String &p);
virtual String displayName() const { return _displayName; }
+ virtual String name() const { return _displayName; }
virtual bool isValid() const { return _isValid; }
virtual bool isDirectory() const { return _isDirectory; }
virtual String path() const { return _path; }
virtual bool listDir(AbstractFSList &list, ListMode mode) const;
virtual AbstractFilesystemNode *parent() const;
- virtual AbstractFilesystemNode *child(const String &name) const;
+ virtual AbstractFilesystemNode *child(const String &n) const;
private:
static void addFile (AbstractFSList &list, ListMode mode, const Char *base, FileInfoType* find_data);
@@ -179,13 +180,13 @@ AbstractFilesystemNode *PalmOSFilesystemNode::parent() const {
}
-AbstractFilesystemNode *PalmOSFilesystemNode::child(const String &name) const {
+AbstractFilesystemNode *PalmOSFilesystemNode::child(const String &n) const {
assert(_isDirectory);
String newPath(_path);
if (_path.lastChar() != '/')
newPath += '/';
- newPath += name;
+ newPath += n;
FileRef handle;
UInt32 attr;