Got rid of Common::File::addDefaultDirectory, instead implemented the solution proposed in "Case agnostic handling for directories (and files)" on -devel.

svn-id: r44266
This commit is contained in:
Johannes Schickel 2009-09-23 00:15:00 +00:00
parent 75113ad5f3
commit c50940bbf4
13 changed files with 136 additions and 81 deletions

View file

@ -32,16 +32,6 @@
namespace Common {
void File::addDefaultDirectory(const String &directory) {
FSNode dir(directory);
addDefaultDirectory(dir);
}
void File::addDefaultDirectory(const FSNode &dir) {
if (dir.exists() && dir.isDirectory())
SearchMan.addDirectory(dir.getPath(), dir);
}
File::File()
: _handle(0) {
}