We can't reliably make the decision as to how to load the image (FastImageIO/raw v normal) at the ResourceManager level - the path name by this point may be a file in the cache which will have lost its indicative extension. Instead, make the decision before we turn the resource path into an actual file name. This fixes YPP's current image loading issues.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@318 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -54,6 +54,6 @@ public abstract class ResourceBundle
|
||||
* Decodes and returns the specified image resource. Returns null if no resource exists at the
|
||||
* specified path.
|
||||
*/
|
||||
public abstract BufferedImage getImageResource (String path)
|
||||
public abstract BufferedImage getImageResource (String path, boolean forceFastIO)
|
||||
throws IOException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user