From c2fe02a3f3e1ea4f190948bfc369d9852b354db4 Mon Sep 17 00:00:00 2001 From: Graham Date: Mon, 13 Jan 2020 20:28:40 +0000 Subject: [PATCH] Rename PLATFORM_DETECT_MATCHER to GL_PLATFORM_DETECT_MATCHER --- .../openrs2/bundler/transform/PlatformDetectionTransformer.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundler/src/main/java/dev/openrs2/bundler/transform/PlatformDetectionTransformer.kt b/bundler/src/main/java/dev/openrs2/bundler/transform/PlatformDetectionTransformer.kt index 6cd9f6ca..4d3583cf 100644 --- a/bundler/src/main/java/dev/openrs2/bundler/transform/PlatformDetectionTransformer.kt +++ b/bundler/src/main/java/dev/openrs2/bundler/transform/PlatformDetectionTransformer.kt @@ -30,7 +30,7 @@ class PlatformDetectionTransformer : Transformer() { } override fun transformCode(classPath: ClassPath, library: Library, clazz: ClassNode, method: MethodNode): Boolean { - val match = PLATFORM_DETECT_MATCHER.match(method).singleOrNull() + val match = GL_PLATFORM_DETECT_MATCHER.match(method).singleOrNull() if (match != null) { // find os.name, os.arch and platform ID variables val nameStore = match[3] as VarInsnNode @@ -154,7 +154,7 @@ class PlatformDetectionTransformer : Transformer() { companion object { private val logger = InlineLogger() - private val PLATFORM_DETECT_MATCHER = InsnMatcher.compile( + private val GL_PLATFORM_DETECT_MATCHER = InsnMatcher.compile( """ LDC INVOKESTATIC INVOKEVIRTUAL ASTORE LDC INVOKESTATIC INVOKEVIRTUAL ASTORE