Update default storage path for configs

The storage path for configs has now been updated to a new directory. This change applies to both the init method in the BoosterFileStorage class and the Config constructor. Instead of the user home directory, configs will now be stored in the "/mnt" directory.
This commit is contained in:
Teriuihi 2024-07-19 21:27:24 +02:00
parent 4b7fdd3141
commit 254acc4918
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ public class BoosterFileStorage {
} }
private void init() { private void init() {
File CONFIG_PATH = new File(System.getProperty("user.home") + File.separator + "share" + File.separator + "configs" + File.separator + "Boosters"); File CONFIG_PATH = new File(File.separator + "mnt" + File.separator + "configs" + File.separator + "Boosters");
if (!CONFIG_PATH.exists()) { if (!CONFIG_PATH.exists()) {
if (!CONFIG_PATH.mkdir()) if (!CONFIG_PATH.mkdir())
logger.severe("Unable to create json storage directory"); logger.severe("Unable to create json storage directory");

View File

@ -11,8 +11,8 @@ public final class Config extends AbstractConfig {
Config(Logger logger) { Config(Logger logger) {
super( super(
new File(System.getProperty("user.home") + File.separator new File(File.separator
+ "share" + File.separator + "mnt" + File.separator
+ "configs" + File.separator + "configs" + File.separator
+ "Boosters"), + "Boosters"),
"config.yml", logger, Config.class); "config.yml", logger, Config.class);