mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-01 05:44:24 +02:00
docs: fixup
This commit is contained in:
parent
a8653fe6a0
commit
066ad274ed
@ -4,7 +4,8 @@ import app.revanced.patcher.proxy.mutableTypes.MutableClass
|
||||
import org.jf.dexlib2.iface.ClassDef
|
||||
|
||||
/**
|
||||
* A proxy class for a [ClassDef]
|
||||
* A proxy class for a [ClassDef].
|
||||
*
|
||||
* A class proxy simply holds a reference to the original class
|
||||
* and creates a mutable clone for the original class if needed.
|
||||
* @param immutableClass The class to proxy
|
||||
@ -18,8 +19,9 @@ class ClassProxy(
|
||||
internal lateinit var mutatedClass: MutableClass
|
||||
|
||||
/**
|
||||
* Creates and returns a mutable clone of the original class
|
||||
* A patch should always use the original immutable class reference to avoid unnecessary allocations for the mutable class
|
||||
* Creates and returns a mutable clone of the original class.
|
||||
* A patch should always use the original immutable class reference
|
||||
* to avoid unnecessary allocations for the mutable class.
|
||||
*/
|
||||
fun resolve(): MutableClass {
|
||||
if (!proxyUsed) {
|
||||
|
@ -29,6 +29,7 @@ class InlineSmaliCompiler {
|
||||
* as that will result in exceptions since the labels cannot be calculated.
|
||||
* Do not create dummy labels to fix the issue, since the code addresses will
|
||||
* be messed up and results in broken Dalvik bytecode.
|
||||
* FIXME: Fix the above issue. When this is fixed, add the proper conversions in [InstructionConverter].
|
||||
*/
|
||||
fun compileMethodInstructions(instructions: String): List<BuilderInstruction> {
|
||||
val input = METHOD_TEMPLATE.format(instructions)
|
||||
|
Loading…
x
Reference in New Issue
Block a user