+void resource::print_types()
+{
+}
+
+void resource::manage_loader(const std::string& extension, loader_ptr& loader, bool set)
+{
+ static type_lookup lookup;
+
+ if (loader || set)
+ {
+ lookup[extension] = loader;
+ }
+ else
+ {
+ std::map<std::string,loader_ptr>::iterator it;
+ it = lookup.find(extension);
+ if (it != lookup.end()) loader = (*it).second;
+ }
+}