mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
fix(Io): fix finding classes by name
This commit is contained in:
parent
89e4b9f762
commit
460d62a24c
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ object Io {
|
|||
jos.putNextEntry(e)
|
||||
|
||||
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) {
|
||||
val cw = ClassWriter(ClassWriter.COMPUTE_MAXS or ClassWriter.COMPUTE_FRAMES)
|
||||
|
|
Loading…
Reference in a new issue