mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-11 22:06:18 +00:00
fix: String.toInstructions defaulting forStaticMethod to false
Fixes revanced/revanced-patches#46
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user