Skip to content

Commit

Permalink
rearranged failedbeatmap.txt delete and create code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jatie1 committed Feb 3, 2022
1 parent dea2d29 commit adefc5c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/jatie/BeatmapDownloader.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,14 @@ public static void downloadDirect(Beatmap beatmap) {
}

public static void preDownloadActivities() {
File failedBeatmaps = new File("failedbeatmaps.txt");
failedBeatmaps.delete();
System.out.println("Final check if osu! client is open before starting downloads...");
while (!checkOsuOpen()) {
System.out.print("Why is the osu! client not open? Did you read the disclaimer? Open the client and press enter to continue.");
SCANNER.nextLine();
}
// Delete old failedbeatmaps.txt if exists, then create blank new one
File failedBeatmaps = new File("failedbeatmaps.txt");
failedBeatmaps.delete();
try {
failedBeatmaps.createNewFile();
} catch (IOException e) {
Expand Down

0 comments on commit adefc5c

Please sign in to comment.