mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-03 14:14:26 +02:00
fix: String.toInstructions
defaulting forStaticMethod
to false
Fixes revanced/revanced-patches#46
This commit is contained in:
parent
a3005fa08e
commit
5a2f02b97d
@ -67,7 +67,8 @@ class InlineSmaliCompiler {
|
|||||||
fun String.toInstructions(templateMethod: Method? = null) = InlineSmaliCompiler.compile(this,
|
fun String.toInstructions(templateMethod: Method? = null) = InlineSmaliCompiler.compile(this,
|
||||||
templateMethod?.parameters?.joinToString("") { it } ?: "",
|
templateMethod?.parameters?.joinToString("") { it } ?: "",
|
||||||
templateMethod?.implementation?.registerCount ?: 1,
|
templateMethod?.implementation?.registerCount ?: 1,
|
||||||
(templateMethod?.accessFlags ?: 0) and AccessFlags.STATIC.value != 0)
|
templateMethod?.let { AccessFlags.STATIC.isSet(it.accessFlags) } ?: true
|
||||||
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compile a line of Smali code to an instruction.
|
* Compile a line of Smali code to an instruction.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user