mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-02 14:04:24 +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))
|
||||
|
||||
// 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…
x
Reference in New Issue
Block a user