mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-03 14:14:26 +02:00
refactor: only compute maxs and use existing stack frames
This commit is contained in:
parent
be992a3e6f
commit
b197956e39
@ -79,10 +79,7 @@ internal class Io(
|
|||||||
jos.putNextEntry(JarEntry(name))
|
jos.putNextEntry(JarEntry(name))
|
||||||
|
|
||||||
// parse the patched class to a byte array and write it to the output stream
|
// parse the patched class to a byte array and write it to the output stream
|
||||||
val cw = ClassWriter(
|
val cw = ClassWriter(classReaders[name]!!, ClassWriter.COMPUTE_MAXS)
|
||||||
classReaders[name]!!,
|
|
||||||
ClassWriter.COMPUTE_FRAMES or ClassWriter.COMPUTE_MAXS
|
|
||||||
)
|
|
||||||
patchedClass.accept(cw)
|
patchedClass.accept(cw)
|
||||||
jos.write(cw.toByteArray())
|
jos.write(cw.toByteArray())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user