mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-18 21:30:00 +10:00
Fix crashing when Wireless module not present
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# OpenCore Legacy Patcher changelog
|
# OpenCore Legacy Patcher changelog
|
||||||
|
|
||||||
## 0.1.5
|
## 0.1.5
|
||||||
|
- Fix crashing when Wireless module not present
|
||||||
|
|
||||||
## 0.1.4
|
## 0.1.4
|
||||||
- Fix Device Path formatting on 2012+ iMacs
|
- Fix Device Path formatting on 2012+ iMacs
|
||||||
|
|||||||
+4
-1
@@ -46,7 +46,10 @@ class BuildOpenCore:
|
|||||||
|
|
||||||
def build_efi(self):
|
def build_efi(self):
|
||||||
Utilities.cls()
|
Utilities.cls()
|
||||||
print(f"Building Configuration for model: {self.model}")
|
if not self.constants.custom_model:
|
||||||
|
print(f"Building Configuration on model: {self.model}")
|
||||||
|
else:
|
||||||
|
print(f"Building Configuration for external model: {self.model}")
|
||||||
if not Path(self.constants.build_path).exists():
|
if not Path(self.constants.build_path).exists():
|
||||||
Path(self.constants.build_path).mkdir()
|
Path(self.constants.build_path).mkdir()
|
||||||
print("Created build folder")
|
print("Created build folder")
|
||||||
|
|||||||
@@ -71,8 +71,11 @@ class pci_probe:
|
|||||||
print(f"- No ACPI entry found for {gpu_type}")
|
print(f"- No ACPI entry found for {gpu_type}")
|
||||||
return vendor_id, device_id, ""
|
return vendor_id, device_id, ""
|
||||||
except ValueError:
|
except ValueError:
|
||||||
print(f"- No IOService entry found for {gpu_type}")
|
print(f"- No IOService entry found for {gpu_type} (V)")
|
||||||
return "", "", ""
|
return "", "", ""
|
||||||
|
except IndexError:
|
||||||
|
print(f"- No IOService entry found for {gpu_type} (I)")
|
||||||
|
return "", "", "", ""
|
||||||
|
|
||||||
def wifi_probe(self):
|
def wifi_probe(self):
|
||||||
try:
|
try:
|
||||||
@@ -92,5 +95,8 @@ class pci_probe:
|
|||||||
print(f"- No ACPI entry found for {vendor_id}:{device_id}")
|
print(f"- No ACPI entry found for {vendor_id}:{device_id}")
|
||||||
return vendor_id, device_id, ioname, ""
|
return vendor_id, device_id, ioname, ""
|
||||||
except ValueError:
|
except ValueError:
|
||||||
print(f"- No IOService entry found for Wireless Card")
|
print(f"- No IOService entry found for Wireless Card (V)")
|
||||||
|
return "", "", "", ""
|
||||||
|
except IndexError:
|
||||||
|
print(f"- No IOService entry found for Wireless Card (I)")
|
||||||
return "", "", "", ""
|
return "", "", "", ""
|
||||||
Reference in New Issue
Block a user