This commit is contained in:
Licht 2014-11-02 02:00:30 +01:00
commit d934ff02bf
1 changed files with 5 additions and 1 deletions

View File

@ -22,8 +22,12 @@ public class Loader {
* Return the loaded BufferedImage by its filename.
*/
public static BufferedImage getBufferedImageByFilename(String filename) {
if(CodeEnvironment.isJar()) {
return Loader.images.get(filename);
} else {
return Loader.images.get(filename.replace("/", File.separator));
}
}
/**
* Perform the initial loading of everything and show the progress on the given LoadingScreen.