Fix error
This commit is contained in:
parent
5deaede480
commit
3c5dc97c38
|
@ -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");
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user