From 67ab785b9031af1328fd0a2d5e52311654f5bef1 Mon Sep 17 00:00:00 2001 From: laobamac Date: Fri, 3 Apr 2026 23:31:29 +0800 Subject: [PATCH] Add USBMap.kext support for macOS Tahoe. --- Scripts/shared.py | 2 +- base.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Scripts/shared.py b/Scripts/shared.py index 6376417..5fd1531 100644 --- a/Scripts/shared.py +++ b/Scripts/shared.py @@ -7,7 +7,7 @@ from Scripts._build import BUILD -VERSION = "0.2" +VERSION = "0.3" if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"): current_dir = Path(sys.executable).parent diff --git a/base.py b/base.py index 65b6312..15b2b4c 100644 --- a/base.py +++ b/base.py @@ -607,7 +607,9 @@ def build_kext(self): personality["IOProviderMergeProperties"]["ports"][port_name] = { "port": binascii.a2b_hex(hexswap(hex(port["index"])[2:].zfill(8))), + "usb-port-number": binascii.a2b_hex(hexswap(hex(port["index"])[2:].zfill(8))), "UsbConnector": port["type"] or port["guessed"], + "usb-port-type": port["type"] or port["guessed"], } if self.settings["add_comments_to_map"] and port["comment"]: @@ -695,4 +697,4 @@ def monu(self): response = menu.start() self.on_quit() - self.utils.custom_quit() + self.utils.custom_quit() \ No newline at end of file