diff options
| author | Lorenz <ESs95s3P5z8Pheb> | 2022-07-15 19:41:05 +0200 |
|---|---|---|
| committer | Lorenz <ESs95s3P5z8Pheb> | 2022-07-15 19:41:05 +0200 |
| commit | 8918d129525ace873e98840d9d4499e35c92dffe (patch) | |
| tree | d0dd7e5af3738ab52c20ac69de25f91b9149e7c4 /src/main/java/at/hannibal2/skyhanni/events | |
| parent | 2d923d222ebc58777dbf8523484f69a26313188c (diff) | |
| download | skyhanni-8918d129525ace873e98840d9d4499e35c92dffe.tar.gz skyhanni-8918d129525ace873e98840d9d4499e35c92dffe.tar.bz2 skyhanni-8918d129525ace873e98840d9d4499e35c92dffe.zip | |
added repo support
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt | 12 |
1 files changed, 12 insertions, 0 deletions
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 |
