Renamed methods in the FilesystemNode class to match the AbstractFSNode implementations.
Also exposed the new methods (exists, isReadable and isWritable) in FilesystemNode. svn-id: r27113
This commit is contained in:
parent
716bcd0b2b
commit
3b96c7fad5
24 changed files with 174 additions and 156 deletions
|
@ -110,14 +110,14 @@ PluginList Win32PluginProvider::getPlugins() {
|
|||
// Scan for all plugins in this directory
|
||||
FilesystemNode dir(PLUGIN_DIRECTORY);
|
||||
FSList files;
|
||||
if (!dir.listDir(files, FilesystemNode::kListFilesOnly)) {
|
||||
if (!dir.getChildren(files, FilesystemNode::kListFilesOnly)) {
|
||||
error("Couldn't open plugin directory '%s'", PLUGIN_DIRECTORY);
|
||||
}
|
||||
|
||||
for (FSList::const_iterator i = files.begin(); i != files.end(); ++i) {
|
||||
Common::String name(i->name());
|
||||
Common::String name(i->getName());
|
||||
if (name.hasPrefix(PLUGIN_PREFIX) && name.hasSuffix(PLUGIN_SUFFIX)) {
|
||||
pl.push_back(new Win32Plugin(i->path()));
|
||||
pl.push_back(new Win32Plugin(i->getPath()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue