mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-09 00:24:27 +02:00
fix(Io): fix finding classes by name
This commit is contained in:
parent
89e4b9f762
commit
460d62a24c
@ -34,7 +34,7 @@ object Io {
|
|||||||
jos.putNextEntry(e)
|
jos.putNextEntry(e)
|
||||||
|
|
||||||
val clazz = classes.singleOrNull {
|
val clazz = classes.singleOrNull {
|
||||||
clazz -> clazz.name == e.name
|
clazz -> clazz.name+".class" == e.name // clazz.name is the class name only while e.name is the full filename with extension
|
||||||
};
|
};
|
||||||
if (clazz != null) {
|
if (clazz != null) {
|
||||||
val cw = ClassWriter(ClassWriter.COMPUTE_MAXS or ClassWriter.COMPUTE_FRAMES)
|
val cw = ClassWriter(ClassWriter.COMPUTE_MAXS or ClassWriter.COMPUTE_FRAMES)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user