From 51b077b47969e9ed6d73db17843ab34a0e347893 Mon Sep 17 00:00:00 2001 From: Max Weber Date: Fri, 23 Feb 2018 19:41:17 -0700 Subject: [PATCH] cache: Add get_is_mobile opcode. This is set to 1 on the mobile build. All that it does is change some sprites in the options panel. --- cache/src/main/java/net/runelite/cache/script/Instructions.java | 1 + cache/src/main/java/net/runelite/cache/script/Opcodes.java | 1 + 2 files changed, 2 insertions(+) diff --git a/cache/src/main/java/net/runelite/cache/script/Instructions.java b/cache/src/main/java/net/runelite/cache/script/Instructions.java index 39a7c8b95b..709d3bf939 100644 --- a/cache/src/main/java/net/runelite/cache/script/Instructions.java +++ b/cache/src/main/java/net/runelite/cache/script/Instructions.java @@ -482,6 +482,7 @@ public class Instructions add(6507, 4, 0); add(GET_WORLD_BY_INDEX, "get_world_by_index", 1, 4, 0, 2); add(6512, 1, 0); + add(GET_IS_MOBILE, "get_is_mobile", 0, 1); // 6600-6700 add(6600, 0, 0); add(6601, 1, 0, 0, 1); diff --git a/cache/src/main/java/net/runelite/cache/script/Opcodes.java b/cache/src/main/java/net/runelite/cache/script/Opcodes.java index 4f87b70ccc..d6f67a4128 100644 --- a/cache/src/main/java/net/runelite/cache/script/Opcodes.java +++ b/cache/src/main/java/net/runelite/cache/script/Opcodes.java @@ -372,5 +372,6 @@ public class Opcodes public static final int GET_NEXT_WORLD = 6502; public static final int GET_WORLD_BY_ID = 6506; public static final int GET_WORLD_BY_INDEX = 6511; + public static final int GET_IS_MOBILE = 6518; public static final int GET_AREA_NAME = 6693; }