From 223f1ef638feeb8de863752a9a29dc7b8998d4d2 Mon Sep 17 00:00:00 2001 From: N0VAN0M4LY <224130499+N0VAN0M4LY@users.noreply.github.com> Date: Mon, 30 Nov 2026 10:40:12 +0800 Subject: [PATCH] fix(tools): load login flags for Quirrel compilation Verified full GUI compilation on both supported game versions and confirmed that a deliberate unknown binding fails. --- tools/src/wtotools/gui_check.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/src/wtotools/gui_check.py b/tools/src/wtotools/gui_check.py index 3af8114..614986e 100644 --- a/tools/src/wtotools/gui_check.py +++ b/tools/src/wtotools/gui_check.py @@ -64,6 +64,7 @@ let typeMap = { Float = types.Float Bool = types.Bool CtrlsInGui = __CONTROL_MASKS__ + LOGIN_STATE = __LOGIN_MASKS__ QUEUE_TYPE_BIT = __QUEUE_MASKS__ } function readText(p) { @@ -182,6 +183,10 @@ def verify_gui_patches( "__CONTROL_MASKS__", _integer_table_literal(stock_archive, "globalscripts/sharedenums.nut", r"\benum\s+CtrlsInGui"), ) + harness_source = harness_source.replace( + "__LOGIN_MASKS__", + _integer_table_literal(stock_archive, "globals/login/loginconsts.nut", r"\benum\s+LOGIN_STATE"), + ) harness_source = harness_source.replace( "__QUEUE_MASKS__", _integer_table_literal(stock_archive, "scripts/queue/queuetypebit.nut", r"\breturn\s+freeze\("),