void set_directory(const FS::Path &);
void add_directory(const FS::Path &);
+ /** Examines the names of files in the designated directories and adds any
+ applicable ones as future objects. */
+ void load_names();
+
template<typename T>
CollectionItemType<T> &add_type()
{
if(lookup_file(name, file))
{
RefPtr<T> item = new T;
- load(*item, file.str());
+ ItemLoader<T> ldr(*item, *this);
+ IO::BufferedFile in(file.str());
+ Parser parser(in, file.str());
+ ldr.load(parser);
return item.release();
}
else