show notif and leave game when directory containing replays does not exist
This commit is contained in:
parent
8471c43ed5
commit
4f68669add
|
@ -1463,6 +1463,14 @@ public class Game extends ComplexOpsuState {
|
||||||
super.enter();
|
super.enter();
|
||||||
|
|
||||||
File replaydir = new File("d:/Users/Robin/games/osu/osr-stuff-master/image/");
|
File replaydir = new File("d:/Users/Robin/games/osu/osr-stuff-master/image/");
|
||||||
|
if (!replaydir.exists()) {
|
||||||
|
BubNotifListener.EVENT.make().onBubNotif(String.format(
|
||||||
|
"replay folder '%s' does not exist", replaydir.getAbsolutePath()
|
||||||
|
), Colors.BUB_RED);
|
||||||
|
displayContainer.switchStateInstantly(songMenuState);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
File[] files = replaydir.listFiles(new FileFilter() {
|
File[] files = replaydir.listFiles(new FileFilter() {
|
||||||
@Override
|
@Override
|
||||||
public boolean accept(File pathname) {
|
public boolean accept(File pathname) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user