aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/config')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/config/Config.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/config/Config.java b/src/main/java/cc/polyfrost/oneconfig/config/Config.java
index 9c70aa6..9557728 100644
--- a/src/main/java/cc/polyfrost/oneconfig/config/Config.java
+++ b/src/main/java/cc/polyfrost/oneconfig/config/Config.java
@@ -32,6 +32,7 @@ import java.nio.file.Files;
import java.util.*;
import java.util.function.Supplier;
+@SuppressWarnings({"unused", "ResultOfMethodCallIgnored"})
public class Config {
public final transient HashMap<String, BasicOption> optionNames = new HashMap<>();
transient protected final String configFile;
@@ -303,4 +304,20 @@ public class Config {
keyBind.setRunnable(runnable);
KeyBindHandler.INSTANCE.addKeyBind(keyBind);
}
+
+ /**
+ * Reset this config file to its defaults.
+ * @return true if successful, false if not.
+ * @deprecated <b>not implemented yet.</b>
+ */
+ @Deprecated
+ public boolean reset() {
+ try {
+ // TODO
+ } catch (Exception e) {
+ e.printStackTrace();
+ return false;
+ }
+ return true;
+ }
}