From e270aeb92eac47ab83842af0ac081f8e2019ddeb Mon Sep 17 00:00:00 2001 From: yugecin Date: Wed, 29 Mar 2017 23:59:38 +0200 Subject: [PATCH] sort the playerlist by score --- src/itdelatrisu/opsu/states/Game.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/itdelatrisu/opsu/states/Game.java b/src/itdelatrisu/opsu/states/Game.java index 5ec35948..4c11abfd 100644 --- a/src/itdelatrisu/opsu/states/Game.java +++ b/src/itdelatrisu/opsu/states/Game.java @@ -1471,7 +1471,7 @@ public class Game extends ComplexOpsuState { super.enter(); - File replaydir = new File("d:/Users/Robin/games/osu/osr-stuff-master/opsud/"); + File replaydir = new File("d:/Users/Robin/games/osu/osr-stuff-master/raize/"); File[] files = replaydir.listFiles(new FileFilter() { @Override public boolean accept(File pathname) { @@ -1494,6 +1494,13 @@ public class Game extends ComplexOpsuState { hue += hueshift; } + replays.sort(new Comparator() { + @Override + public int compare(ReplayPlayback o1, ReplayPlayback o2) { + return Integer.compare(o2.replay.score, o1.replay.score); + } + }); + if (isReplay || GameMod.AUTO.isActive() || GameMod.AUTOPILOT.isActive()) { displayContainer.drawCursor = false; }