mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-01 05:44:24 +02:00
refact: better parameter names for Warning
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
e5bea06353
commit
d677d9e800
@ -93,15 +93,15 @@ interface PatternScanMethod {
|
|||||||
/**
|
/**
|
||||||
* Represents a resolver warning.
|
* Represents a resolver warning.
|
||||||
* @param expected The opcode the signature expected it to be.
|
* @param expected The opcode the signature expected it to be.
|
||||||
* @param actual The actual opcode it was. Always different from [expected].
|
* @param current The current opcode in the pattern. Always different from [expected].
|
||||||
* @param expectedIndex The index for [expected]. Relative to the instruction list.
|
* @param instructionIndex The index of the opcode relative to the instruction list.
|
||||||
* @param actualIndex The index for [actual]. Relative to the pattern list from the signature.
|
* @param patternIndex The index of the opcode relative to the pattern list from the signature.
|
||||||
*/
|
*/
|
||||||
data class Warning(
|
data class Warning(
|
||||||
val expected: Opcode,
|
val expected: Opcode,
|
||||||
val actual: Opcode,
|
val current: Opcode,
|
||||||
val expectedIndex: Int,
|
val instructionIndex: Int,
|
||||||
val actualIndex: Int,
|
val patternIndex: Int,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -135,8 +135,8 @@ internal class SignatureResolver(
|
|||||||
) {
|
) {
|
||||||
this.add(
|
this.add(
|
||||||
PatternScanMethod.Fuzzy.Warning(
|
PatternScanMethod.Fuzzy.Warning(
|
||||||
patternOpcode, originalOpcode,
|
originalOpcode, patternOpcode,
|
||||||
patternIndex, originalIndex,
|
originalIndex, patternIndex,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user