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 oSumAtrIX committed Jun 5, 2022
1 parent b6ca31a commit b957501
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
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 b957501

Please sign in to comment.