Skip to content

Commit

Permalink
fix: fix not start for the first time
Browse files Browse the repository at this point in the history
  • Loading branch information
hizumiaoba committed Mar 10, 2022
1 parent dd42ddc commit 46fe9a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/com/ranfa/lib/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ public static boolean writeDownJSON() {
property.setSaveScoreLog(false);
ObjectWriter writer = new ObjectMapper().writer(new DefaultPrettyPrinter());
try {
if(Files.notExists(Paths.get("generated")))
Files.createDirectory(Paths.get("generated"));
writer.writeValue(Paths.get(FILEPATH).toFile(), property);
} catch (IOException e) {
logger.error("Couldn't write down setting file.", e);
Expand Down
2 changes: 1 addition & 1 deletion src/com/ranfa/main/DelesteRandomSelector.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
import com.ranfa.lib.handler.CrashHandler;
import com.ranfa.lib.songinfo.FetchFromAPI;

@Version(major = 4, minor = 0, patch = 0, suffix = Suffix.BETA)
@Version(major = 4, minor = 0, patch = 1, suffix = Suffix.BETA)
public class DelesteRandomSelector extends JFrame {

private static ArrayList<Song> selectedSongsList = new ArrayList<>();
Expand Down

0 comments on commit 46fe9a4

Please sign in to comment.