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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user