mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-24 12:00:15 +10:00
utilites.py: Fix array index
This commit is contained in:
@@ -14,6 +14,8 @@
|
|||||||
- Streamline Bluetooth device detection
|
- Streamline Bluetooth device detection
|
||||||
- Add Probing for Top Case hardware (Jazzzny)
|
- Add Probing for Top Case hardware (Jazzzny)
|
||||||
- Improves handling for altered hardware scenarios (i.e. MacBookPro4,1 with MacBookPro3,1 topcase)
|
- Improves handling for altered hardware scenarios (i.e. MacBookPro4,1 with MacBookPro3,1 topcase)
|
||||||
|
- utilities.py:
|
||||||
|
- Fix indexing error on Device Paths (thx [@Ausdauersportler](https://github.com/Ausdauersportler))
|
||||||
- Increment Binaries:
|
- Increment Binaries:
|
||||||
- PatcherSupportPkg 1.1.4 - release
|
- PatcherSupportPkg 1.1.4 - release
|
||||||
|
|
||||||
|
|||||||
@@ -437,7 +437,7 @@ def clean_device_path(device_path: str):
|
|||||||
if len(device_path_array) >= 2:
|
if len(device_path_array) >= 2:
|
||||||
device_path_stripped = device_path_array[-2]
|
device_path_stripped = device_path_array[-2]
|
||||||
device_path_root_array = device_path_stripped.split(",")
|
device_path_root_array = device_path_stripped.split(",")
|
||||||
if len(device_path_root_array) >= 2:
|
if len(device_path_root_array) > 2:
|
||||||
return device_path_root_array[2]
|
return device_path_root_array[2]
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user