mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
fix: String.toInstructions
defaulting forStaticMethod
to false
Fixes revanced/revanced-patches#46
This commit is contained in:
parent
a3005fa08e
commit
5a2f02b97d
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue