mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-11 13:56:16 +00:00
feat: load patches in lexicographical order
This feature was lost in past commits
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
package app.revanced.patcher
|
||||
|
||||
import app.revanced.patcher.extensions.AnnotationExtensions.findAnnotationRecursively
|
||||
import app.revanced.patcher.extensions.PatchExtensions.patchName
|
||||
import app.revanced.patcher.patch.Patch
|
||||
import app.revanced.patcher.patch.PatchClass
|
||||
import dalvik.system.DexClassLoader
|
||||
@@ -28,6 +29,8 @@ sealed class PatchBundleLoader private constructor(
|
||||
}.map {
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
it as PatchClass
|
||||
}.sortedBy {
|
||||
it.patchName
|
||||
}.let { addAll(it) }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user