"""Disable the console UI in the checksum-pinned Linux 0.5.5 executable. The official release retains ELF symbols. Replace only InGameConsole::Open with an x86-64 return. Simulation, numeric inputs, plugin logging and the shared engine library remain untouched. Refuse other binaries/architectures. This task image is a restricted derivative, not the unmodified release. """ import hashlib import json from pathlib import Path import struct import sys EXPECTED = "cf0df169bc7ff738381a3e54c8e5ecdcd6b623a4ac7f1260bc713d753d803677" SYMBOL = "_ZN8OpenRCT22Ui13InGameConsole4OpenEv" def restrict(path): data = bytearray(path.read_bytes()) digest = hashlib.sha256(data).hexdigest() if digest != EXPECTED: raise ValueError("Console restriction requires the pinned official Linux executable") if data[:6] != b"\x7fELF\x02\x01" or struct.unpack_from("