diff --git a/src/yugecin/opsudance/options/Configuration.java b/src/yugecin/opsudance/options/Configuration.java index 393725ad..74d3aca3 100644 --- a/src/yugecin/opsudance/options/Configuration.java +++ b/src/yugecin/opsudance/options/Configuration.java @@ -53,6 +53,8 @@ import static yugecin.opsudance.options.Options.*; public class Configuration { + public static Configuration instance; + public final boolean USE_XDG; public final File CONFIG_DIR; public final File DATA_DIR; @@ -87,6 +89,8 @@ public class Configuration { @Inject public Configuration() { + instance = this; + USE_XDG = areXDGDirectoriesEnabled(); CONFIG_DIR = getXDGBaseDir("XDG_CONFIG_HOME", ".config"); diff --git a/src/yugecin/opsudance/utils/MiscUtils.java b/src/yugecin/opsudance/utils/MiscUtils.java index c66e5801..320e3ada 100644 --- a/src/yugecin/opsudance/utils/MiscUtils.java +++ b/src/yugecin/opsudance/utils/MiscUtils.java @@ -17,9 +17,9 @@ */ package yugecin.opsudance.utils; -import itdelatrisu.opsu.Options; import org.newdawn.slick.util.Log; import org.newdawn.slick.util.ResourceLoader; +import yugecin.opsudance.options.Configuration; import java.io.IOException; import java.util.Properties; @@ -31,7 +31,7 @@ public class MiscUtils { public Properties get() { Properties props = new Properties(); try { - props.load(ResourceLoader.getResourceAsStream(Options.VERSION_FILE)); + props.load(ResourceLoader.getResourceAsStream(Configuration.instance.VERSION_FILE)); } catch (IOException e) { Log.error("Could not read version file", e); }