Allow showing a replay after a game.

Added a pause-replay image by XinCrin, and deleted ranking-retry/ranking-exit images.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-03-11 15:53:19 -04:00
parent 7942522c9d
commit 37c0763f32
9 changed files with 84 additions and 56 deletions

View File

@@ -51,6 +51,9 @@ public class Replay {
/** The associated file. */
private File file;
/** Whether or not the replay data has been loaded from the file. */
public boolean loaded = false;
/** The game mode. */
public byte mode;
@@ -116,11 +119,15 @@ public class Replay {
* Loads the replay data.
*/
public void load() {
if (loaded)
return;
try {
OsuReader reader = new OsuReader(file);
loadHeader(reader);
loadData(reader);
reader.close();
loaded = true;
} catch (IOException e) {
ErrorHandler.error("Could not load replay data.", e, true);
}