Increment Build

This commit is contained in:
Mykola Grymalyuk
2022-01-21 16:13:38 -07:00
parent a8683e4e27
commit d3aea7510f
3 changed files with 9 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ from data import os_data
class Constants:
def __init__(self):
# Patcher Versioning
self.patcher_version = "0.4.1" # OpenCore-Legacy-Patcher
self.patcher_version = "0.4.2" # OpenCore-Legacy-Patcher
self.patcher_support_pkg_version = "0.2.9" # PatcherSupportPkg
self.url_patcher_support_pkg = "https://github.com/dortania/PatcherSupportPkg/releases/download/"
self.nightly_url_patcher_support_pkg = "https://nightly.link/dortania/PatcherSupportPkg/workflows/build/master/"

View File

@@ -50,7 +50,10 @@ class PCIDevice:
device = cls(vendor_id, device_id, int.from_bytes(properties["class-code"][:6], byteorder="little"), name=ioreg.io_name_t_to_str(ioreg.IORegistryEntryGetName(entry, None)[1]))
if "model" in properties:
device.model = properties["model"].strip(b"\0").decode()
model = properties["model"]
if type(model) is bytes:
model = model.strip(b"\0").decode()
device.model = model
if "acpi-path" in properties:
device.acpi_path = properties["acpi-path"]
device.populate_pci_path(entry)