A couple changes to allow for a custom resource bundle.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@761 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -851,7 +851,7 @@ public class ResourceManager
|
||||
/**
|
||||
* Creates an appropriate bundle for fetching resources from the network.
|
||||
*/
|
||||
protected NetworkResourceBundle createNetworkResourceBundle(
|
||||
protected ResourceBundle createNetworkResourceBundle(
|
||||
String root, String path, HashSet<String> rsrcList)
|
||||
{
|
||||
return new NetworkResourceBundle(root, path, rsrcList);
|
||||
@@ -872,7 +872,11 @@ public class ResourceManager
|
||||
return ImageIO.read(file);
|
||||
}
|
||||
|
||||
protected static BufferedImage loadImage (InputStream iis, boolean useFastIO)
|
||||
/**
|
||||
* Loads an image from the given input stream. Supports formats supported by {@link ImageIO}
|
||||
* as well as {@link FastImageIO} based on the useFastIO param.
|
||||
*/
|
||||
public static BufferedImage loadImage (InputStream iis, boolean useFastIO)
|
||||
throws IOException
|
||||
{
|
||||
if (iis == null) {
|
||||
|
||||
Reference in New Issue
Block a user