diff --git a/composeApp/src/commonMain/kotlin/moe/crx/ovrport/patch/Patch.kt b/composeApp/src/commonMain/kotlin/moe/crx/ovrport/patch/Patch.kt index 465b371..b243595 100644 --- a/composeApp/src/commonMain/kotlin/moe/crx/ovrport/patch/Patch.kt +++ b/composeApp/src/commonMain/kotlin/moe/crx/ovrport/patch/Patch.kt @@ -38,7 +38,12 @@ class FileTransformer(val file: File) { var matches = true for (j in i..= inputBytes.size) { + break + } + + if (inputBytes[checkIndex] != "??" && bytes[j].toUByte() != inputBytes[checkIndex].toUByte(16)) { matches = false break } @@ -46,7 +51,7 @@ class FileTransformer(val file: File) { if (matches) { val replaced = bytes.slice(0..