Skip to content

Commit

Permalink
fix(Io): fix finding classes by name
Browse files Browse the repository at this point in the history
  • Loading branch information
Bleuzen authored and she11sh0cked committed Mar 23, 2022
1 parent 89e4b9f commit 460d62a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/net/revanced/patcher/util/Io.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 460d62a

Please sign in to comment.