From 8918d129525ace873e98840d9d4499e35c92dffe Mon Sep 17 00:00:00 2001 From: Lorenz Date: Fri, 15 Jul 2022 19:41:05 +0200 Subject: added repo support --- .../at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt (limited to 'src/main/java/at/hannibal2/skyhanni/events') diff --git a/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt new file mode 100644 index 000000000..841133ae9 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt @@ -0,0 +1,12 @@ +package at.hannibal2.skyhanni.events + +import at.hannibal2.skyhanni.repo.RepoUtils +import com.google.gson.Gson +import com.google.gson.JsonObject +import java.io.File + +class RepositoryReloadEvent(val repoLocation: File, val gson: Gson): LorenzEvent() { + fun getConstant(constant: String): JsonObject? { + return RepoUtils.getConstant(repoLocation, constant, gson) + } +} \ No newline at end of file -- cgit