Skip to content

Commit

Permalink
Added Windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur committed Mar 29, 2023
1 parent f59b966 commit d8f503a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/Chomusuke/logic/Storage.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

public class Storage {

private static final Path DIR_NAME = Path.of("/Users/artur/Library/Application Support/Accountable/storage/");
public static final Path ROOT_DIR = Path.of(System.getProperty("user.home")).resolve(System.getProperty("os.name").equals("Mac OS X") ? "Library/Application Support" : "AppData/Roaming");
private static final Path DIR_NAME = ROOT_DIR.resolve("Accountable/storage/");

/**
* Don't let anyone instantiate this class.
Expand Down

0 comments on commit d8f503a

Please sign in to comment.