diff --git a/src/yugecin/opsudance/ReplayPlayback.java b/src/yugecin/opsudance/ReplayPlayback.java index a60eb2d5..8952a391 100644 --- a/src/yugecin/opsudance/ReplayPlayback.java +++ b/src/yugecin/opsudance/ReplayPlayback.java @@ -305,6 +305,7 @@ public class ReplayPlayback { LinkedList time100 = new LinkedList(); LinkedList time50 = new LinkedList(); LinkedList acc = new LinkedList(); + LinkedList combo = new LinkedList(); public HitData(File file) { try (InputStream in = new FileInputStream(file)) { @@ -324,7 +325,7 @@ public class ReplayPlayback { } byte[] _time = { time[3], time[2], time[1], time[0] }; lasttime = ByteBuffer.wrap(_time).getInt(); - lasttime -= 50; + lasttime += 200; int type = in.read(); if (type == -1) { throw new RuntimeException(); @@ -354,6 +355,7 @@ public class ReplayPlayback { break; case 12: int c = ByteBuffer.wrap(_time).getInt(); + combo.add(new ComboData(lasttime, c)); if (c < lastcombo) { combobreaktime = lasttime; } else { @@ -414,4 +416,13 @@ public class ReplayPlayback { } } + public static class ComboData { + public int time; + public int combo; + public ComboData(int time, int combo) { + this.time = time; + this.combo = combo; + } + } + }