aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/test/DebugCommand.kt
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-10-17 05:13:35 +1100
committerGitHub <noreply@github.com>2024-10-16 20:13:35 +0200
commite883d0c027e602348416398ba9b14d295ee6b7b4 (patch)
tree033bc4f0e7d34aa8018fd0347a2ea0560008450b /src/main/java/at/hannibal2/skyhanni/test/DebugCommand.kt
parente2f7293cae6c76b31ad77f59380a688fcdcacde2 (diff)
downloadskyhanni-e883d0c027e602348416398ba9b14d295ee6b7b4.tar.gz
skyhanni-e883d0c027e602348416398ba9b14d295ee6b7b4.tar.bz2
skyhanni-e883d0c027e602348416398ba9b14d295ee6b7b4.zip
Backend: Add backup repo (#2673)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test/DebugCommand.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/DebugCommand.kt28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/DebugCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/DebugCommand.kt
index 76b729ae7..f464a66ce 100644
--- a/src/main/java/at/hannibal2/skyhanni/test/DebugCommand.kt
+++ b/src/main/java/at/hannibal2/skyhanni/test/DebugCommand.kt
@@ -30,15 +30,14 @@ object DebugCommand {
if (search.equalsIgnoreColor("all")) {
"search for everything:"
} else "search '$search':"
- } else "no search specified, only showing interesting stuff:"
+ } else "no search specified, only showing interesting stuff:",
)
val event = DebugDataCollectEvent(list, search)
// calling default debug stuff
player(event)
- repoAutoUpdate(event)
- repoLocation(event)
+ repoData(event)
globalRender(event)
skyblockStatus(event)
profileName(event)
@@ -144,20 +143,21 @@ object DebugCommand {
}
}
- private fun repoAutoUpdate(event: DebugDataCollectEvent) {
- event.title("Repo Auto Update")
- if (SkyHanniMod.feature.dev.repo.repoAutoUpdate) {
- event.addIrrelevant("normal enabled")
- } else {
- event.addData("The repo does not auto update because auto update is disabled!")
+ private fun repoData(event: DebugDataCollectEvent) {
+ event.title("Repo Information")
+ event.addIrrelevant {
+ add(" repoAutoUpdate: ${SkyHanniMod.feature.dev.repo.repoAutoUpdate}")
+ add(" usingBackupRepo: ${RepoManager.usingBackupRepo}")
+ add(" repoLocation: '${RepoManager.getRepoLocation()}'")
+ if (RepoManager.unsuccessfulConstants.isNotEmpty()) {
+ add(" unsuccessful constants:")
+ for (constant in RepoManager.unsuccessfulConstants) {
+ add(" - $constant")
+ }
+ }
}
}
- private fun repoLocation(event: DebugDataCollectEvent) {
- event.title("Repo Location")
- event.addIrrelevant("repo location: '${RepoManager.getRepoLocation()}'")
- }
-
private fun player(event: DebugDataCollectEvent) {
event.title("Player")
event.addIrrelevant {