mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-01 21:54:24 +02:00
docs: fix improper docs for fuzzy resolver Warning
This commit is contained in:
parent
c8b68e36e0
commit
7f18bbf66e
@ -92,8 +92,8 @@ interface PatternScanMethod {
|
||||
|
||||
/**
|
||||
* Represents a resolver warning.
|
||||
* @param correctOpcode The opcode the signature expected it to be.
|
||||
* @param wrongOpcode The opcode the signature currently has.
|
||||
* @param correctOpcode The opcode the instruction list has.
|
||||
* @param wrongOpcode The opcode the pattern list of the signature currently has.
|
||||
* @param instructionIndex The index of the opcode relative to the instruction list.
|
||||
* @param patternIndex The index of the opcode relative to the pattern list from the signature.
|
||||
*/
|
||||
|
@ -126,8 +126,8 @@ internal class SignatureResolver(
|
||||
scanResult: PatternScanResult,
|
||||
) = buildList {
|
||||
val pattern = signature.opcodes!!
|
||||
for ((patternIndex, originalIndex) in (scanResult.startIndex until scanResult.endIndex).withIndex()) {
|
||||
val correctOpcode = instructions.elementAt(originalIndex).opcode
|
||||
for ((patternIndex, instructionIndex) in (scanResult.startIndex until scanResult.endIndex).withIndex()) {
|
||||
val correctOpcode = instructions.elementAt(instructionIndex).opcode
|
||||
val patternOpcode = pattern.elementAt(patternIndex)
|
||||
if (
|
||||
patternOpcode != null && // unknown opcode
|
||||
@ -136,7 +136,7 @@ internal class SignatureResolver(
|
||||
this.add(
|
||||
PatternScanMethod.Fuzzy.Warning(
|
||||
correctOpcode, patternOpcode,
|
||||
originalIndex, patternIndex,
|
||||
instructionIndex, patternIndex,
|
||||
)
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user