Add two features our multi-locale yohoho is going to need:
- Ability to set a locale prefix in which to search for locale-specific images. - Ability to clear the image cache (we want to do this when we switch locales, otherwise we end up with wrong-language images cached.) git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@83 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -136,6 +136,16 @@ public class ImageManager
|
||||
this(rmgr, new AWTImageCreator(context));
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears all images out of the cache.
|
||||
*/
|
||||
public void clearCache ()
|
||||
{
|
||||
Log.info("Clearing image manager cache.");
|
||||
|
||||
_ccache.clear();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a buffered image, optimized for display on our graphics
|
||||
* device.
|
||||
|
||||
Reference in New Issue
Block a user