fix: KernelSU variant detection

This commit fixes the KSU variant detection, which previously was hardcoded on accident to always set it to KernelSU Next.
This commit is contained in:
ThePedroo
2025-06-29 14:23:04 -03:00
parent 9810eb3974
commit 9a3b2f4a79

View File

@@ -52,7 +52,6 @@ void ksu_get_existence(struct root_impl_state *state) {
if (mode[0] != '\0') state->variant = KNext; if (mode[0] != '\0') state->variant = KNext;
else state->variant = KOfficial; else state->variant = KOfficial;
state->variant = KNext;
variant = state->variant; variant = state->variant;
} }
else if (version >= 1 && version <= MIN_KSU_VERSION - 1) state->state = TooOld; else if (version >= 1 && version <= MIN_KSU_VERSION - 1) state->state = TooOld;