mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-13 02:14:27 +01:00
refactor: only compute maxs and use existing stack frames
This commit is contained in:
parent
51fb59a43c
commit
c8a017a4c0
1 changed files with 1 additions and 4 deletions
|
@ -79,10 +79,7 @@ internal class Io(
|
|||
jos.putNextEntry(JarEntry(name))
|
||||
|
||||
// parse the patched class to a byte array and write it to the output stream
|
||||
val cw = ClassWriter(
|
||||
classReaders[name]!!,
|
||||
ClassWriter.COMPUTE_FRAMES or ClassWriter.COMPUTE_MAXS
|
||||
)
|
||||
val cw = ClassWriter(classReaders[name]!!, ClassWriter.COMPUTE_MAXS)
|
||||
patchedClass.accept(cw)
|
||||
jos.write(cw.toByteArray())
|
||||
|
||||
|
|
Loading…
Reference in a new issue