aboutsummaryrefslogtreecommitdiff
path: root/backends/fs
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-05-06 10:34:41 +0000
committerTorbjörn Andersson2004-05-06 10:34:41 +0000
commit6d02fd9d74a759325ae2148a014383d1a107ad28 (patch)
treec3c776d804595c3a82db5f4176f51062e36a6660 /backends/fs
parentfe2f4382fbd97b40aaddf7bf470ec2a24b004ac5 (diff)
downloadscummvm-rg350-6d02fd9d74a759325ae2148a014383d1a107ad28.tar.gz
scummvm-rg350-6d02fd9d74a759325ae2148a014383d1a107ad28.tar.bz2
scummvm-rg350-6d02fd9d74a759325ae2148a014383d1a107ad28.zip
Reverted the last commit (on this file only) because it broke compilation
of gui/browser.cpp. Besides, it didn't seem to have anything to do with keycolor in OSystem. :-) svn-id: r13801
Diffstat (limited to 'backends/fs')
-rw-r--r--backends/fs/fs.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/backends/fs/fs.h b/backends/fs/fs.h
index 15bd05c78f..8719c1d2bf 100644
--- a/backends/fs/fs.h
+++ b/backends/fs/fs.h
@@ -179,7 +179,14 @@ public:
_data[i] = element.clone();
_size++;
}
-
+
+ const FilesystemNode& operator [](int idx) const {
+ assert(idx >= 0 && idx < _size);
+ return *_data[idx];
+ }
+
+ int size() const { return _size; }
+
const_iterator begin() const {
return const_iterator(_data);
}