Preload game images directly before a game. (undo 95775d8)

Not noticing any bad effects from this anymore.  The application should load faster again.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-03-06 14:39:49 -05:00
parent 7fb326d870
commit 6cd6938ea5
2 changed files with 6 additions and 4 deletions

View File

@@ -839,8 +839,10 @@ public class Game extends BasicGameState {
// set images
File parent = osu.getFile().getParentFile();
for (GameImage img : GameImage.values()) {
if (img.isSkinnable())
if (img.isSkinnable()) {
img.setDefaultImage();
img.setSkinImage(parent);
}
}
// skip button