summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/events
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-02-25 21:44:13 +1100
committerGitHub <noreply@github.com>2024-02-25 11:44:13 +0100
commit2a8edee6275a4abe3375351455c27d2ee56f9c36 (patch)
treec92a63bcd9e8c2614beef7cbeb83d97247a6d3c0 /src/main/java/at/hannibal2/skyhanni/events
parent190d97aeb18bbb02778b206404d7084c648038dd (diff)
downloadskyhanni-2a8edee6275a4abe3375351455c27d2ee56f9c36.tar.gz
skyhanni-2a8edee6275a4abe3375351455c27d2ee56f9c36.tar.bz2
skyhanni-2a8edee6275a4abe3375351455c27d2ee56f9c36.zip
/gfs tab complete now uses NEU's Repo instead of SkyHanni Repo. #1053
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/NeuRepositoryReloadEvent.kt11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/NeuRepositoryReloadEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/NeuRepositoryReloadEvent.kt
new file mode 100644
index 000000000..a162a8973
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/events/NeuRepositoryReloadEvent.kt
@@ -0,0 +1,11 @@
+package at.hannibal2.skyhanni.events
+
+import at.hannibal2.skyhanni.utils.NEUItems.manager
+import com.google.gson.JsonObject
+import java.io.File
+
+class NeuRepositoryReloadEvent : LorenzEvent() {
+ fun getConstant(file: String): JsonObject? {
+ return manager.getJsonFromFile(File(manager.repoLocation, "constants/$file.json"))
+ }
+}