mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-03 06:04:25 +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,
|
||||
templateMethod?.parameters?.joinToString("") { it } ?: "",
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user