diff --git a/src/java/com/threerings/resource/ResourceManager.java b/src/java/com/threerings/resource/ResourceManager.java index 1c9ad5112..082fdf14d 100644 --- a/src/java/com/threerings/resource/ResourceManager.java +++ b/src/java/com/threerings/resource/ResourceManager.java @@ -1,5 +1,5 @@ // -// $Id: ResourceManager.java,v 1.3 2001/11/20 00:21:41 mdb Exp $ +// $Id: ResourceManager.java,v 1.4 2001/11/20 00:23:32 mdb Exp $ package com.threerings.resource; @@ -265,6 +265,18 @@ public class ResourceManager throw new FileNotFoundException(errmsg); } + /** + * Returns a reference to the resource set with the specified name, or + * null if no set exists with that name. Services that wish to load + * their own resources can allow the resource manager to load up a + * resource set for them, from which they can easily load their + * resources. + */ + public ResourceBundle[] getResourceSet (String name) + { + return (ResourceBundle[])_sets.get(name); + } + /** The classloader we use for classpath-based resource loading. */ protected ClassLoader _loader;