diff options
| author | Fuwn <[email protected]> | 2024-06-08 18:23:53 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-08 18:24:15 -0700 |
| commit | 0cbefd712d59f01fbe626a3d85b71f848575a403 (patch) | |
| tree | 73112230e9934ec1c03b11e38d275e9e806ae3b6 /patches | |
| parent | refactor(patches): move patches to directory (diff) | |
| download | worldsplayer_source_editor-0cbefd712d59f01fbe626a3d85b71f848575a403.tar.xz worldsplayer_source_editor-0cbefd712d59f01fbe626a3d85b71f848575a403.zip | |
feat: optional patches
Diffstat (limited to 'patches')
| -rw-r--r-- | patches/optional/bypass_assert_fail_exit.patch | 13 | ||||
| -rw-r--r-- | patches/optional/free_vip.patch | 30 |
2 files changed, 43 insertions, 0 deletions
diff --git a/patches/optional/bypass_assert_fail_exit.patch b/patches/optional/bypass_assert_fail_exit.patch new file mode 100644 index 0000000..d4344f0 --- /dev/null +++ b/patches/optional/bypass_assert_fail_exit.patch @@ -0,0 +1,13 @@ +diff --git c/NET/worlds/core/Std.java i/NET/worlds/core/Std.java +index ee83be5..3af1bf6 100644 +--- c/NET/worlds/core/Std.java ++++ i/NET/worlds/core/Std.java +@@ -20,7 +20,7 @@ public class Std { + public static void assertFail(String file, int line) { + String msg = "Assertion failed: file " + file + ", line " + line; + dumpStackTrace(); +- exit(); ++ // exit(); + } + + public static String replaceStr(String in, String seek, String replace) { diff --git a/patches/optional/free_vip.patch b/patches/optional/free_vip.patch new file mode 100644 index 0000000..9636559 --- /dev/null +++ b/patches/optional/free_vip.patch @@ -0,0 +1,30 @@ +diff --git i/NET/worlds/console/Console.java w/NET/worlds/console/Console.java +index 1fc32ab..b6231ef 100644 +--- i/NET/worlds/console/Console.java ++++ w/NET/worlds/console/Console.java +@@ -637,11 +637,13 @@ public abstract class Console extends SuperRoot implements URLSelf, MainCallback + public static final native int getVolumeInfo(); + + public boolean getVIPAvatars() { +- return vip > 0 || isRedLightWorld; ++ // return vip > 0 || isRedLightWorld; ++ return true; + } + + public boolean getVIP() { +- return vip > 0; ++ // return vip > 0; ++ return true; + } + + public void setVIP(boolean vip) { +@@ -654,7 +656,8 @@ public abstract class Console extends SuperRoot implements URLSelf, MainCallback + } + + public boolean getFullVIP() { +- return vip == 2; ++ // return vip == 2; ++ return true; + } + + public void setFullVIP(boolean fullVIP) { |