mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-09-20 04:53:43 +02:00
feat: parametersCount
for InlineSmaliCompiler
instead of parameters
This commit is contained in:
parent
fd690acd61
commit
ad6c5c8273
1 changed files with 4 additions and 4 deletions
|
@ -59,8 +59,8 @@ class InlineSmaliCompiler {
|
|||
}
|
||||
}
|
||||
|
||||
fun String.toInstructions(parameters: String = "", registers: Int = 1, forStaticMethod: Boolean = true) =
|
||||
InlineSmaliCompiler.compileMethodInstructions(this, parameters, registers, forStaticMethod)
|
||||
fun String.toInstructions(parametersCount: Int = 0, registers: Int = 1, forStaticMethod: Boolean = true) =
|
||||
InlineSmaliCompiler.compileMethodInstructions(this, "I".repeat(parametersCount), registers, forStaticMethod)
|
||||
|
||||
fun String.toInstruction(parameters: String = "", registers: Int = 1, forStaticMethod: Boolean = true) =
|
||||
this.toInstructions(parameters, registers, forStaticMethod).first()
|
||||
fun String.toInstruction(parametersCount: Int = 0, registers: Int = 1, forStaticMethod: Boolean = true) =
|
||||
this.toInstructions(parametersCount, registers, forStaticMethod).first()
|
||||
|
|
Loading…
Reference in a new issue