diff options
| author | Max Horn | 2006-07-22 14:14:16 +0000 |
|---|---|---|
| committer | Max Horn | 2006-07-22 14:14:16 +0000 |
| commit | 6ed00cd055abcc98b8ad5d4e2ac6396852ec9c95 (patch) | |
| tree | a3f1c83c0bc528f22576bd3f523af49f2a805460 /backends/fs/gp32 | |
| parent | 42cebc00dcb5c274c96f69bb2658906d1ce269ec (diff) | |
| download | scummvm-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/gp32')
| -rw-r--r-- | backends/fs/gp32/gp32-fs.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/backends/fs/gp32/gp32-fs.cpp b/backends/fs/gp32/gp32-fs.cpp index c9e615b05c..4d242d339f 100644 --- a/backends/fs/gp32/gp32-fs.cpp +++ b/backends/fs/gp32/gp32-fs.cpp @@ -39,13 +39,14 @@ public: GP32FilesystemNode(const String &path); virtual String displayName() const { return _displayName; } + virtual String name() const { return _displayName; } virtual bool isValid() const { return true; } 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; }; #define MAX_PATH_SIZE 256 @@ -216,14 +217,14 @@ AbstractFilesystemNode *GP32FilesystemNode::parent() const { return p; } -AbstractFilesystemNode *GP32FilesystemNode::child(const String &name) const { +AbstractFilesystemNode *GP32FilesystemNode::child(const String &n) const { // FIXME: Pretty lame implementation! We do no error checking to speak // of, do not check if this is a special node, etc. assert(_isDirectory); String newPath(_path); if (_path.lastChar() != '\\') newPath += '\\'; - newPath += name; + newPath += n; GP32FilesystemNode *p = new GP32FilesystemNode(newPath); return p; |
