Skip to content

Commit 3ef0dd4

Browse files
committed
- Add AppleHDA.kext fixes--15.6
1 parent bc1509b commit 3ef0dd4

File tree

7 files changed

+25
-93
lines changed

7 files changed

+25
-93
lines changed

.github/workflows/build-app-wxpython.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
build:
1313
name: Build wxPython
14-
runs-on: macos-15
14+
runs-on: macos-13
1515
if: github.repository_owner == 'hackdoc'
1616
permissions:
1717
contents: write
@@ -29,7 +29,7 @@ jobs:
2929
rm -rf *pay*.dmg
3030
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 -m pip install -r requirements.txt
3131
32-
aria2c -x 16 "https://github.com/hackdoc/PatcherSupportPkg/releases/download/1.9.9pre3/Universal-Binaries.dmg"
32+
aria2c -x 16 "https://github.com/hackdoc/PatcherSupportPkg/releases/download/1.10.0/Universal-Binaries.dmg"
3333
3434
- name: Force Universal2 charset for Python
3535
run: |

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ jobs:
2525
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 -m pip install -r requirements.txt
2626
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 -m pip install packaging
2727
rm -rf Univ*
28-
aria2c -x 16 "https://github.com/hackdoc/PatcherSupportPkg/releases/download/1.9.9pre3/Universal-Binaries.dmg"
28+
aria2c -x 16 "https://github.com/hackdoc/PatcherSupportPkg/releases/download/1.10.0/Universal-Binaries.dmg"
2929
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 OCLP-R-GUI.command --validate

oclp_r/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Constants:
1414
def __init__(self) -> None:
1515
# Patcher Versioning
1616
self.patcher_version: str = "3.0.0" # OCLP-R
17-
self.patcher_support_pkg_version: str = "1.9.9" # PatcherSupportPkg
17+
self.patcher_support_pkg_version: str = "1.10.0" # PatcherSupportPkg
1818
self.copyright_date: str = "Copyright © 2020-2025 Dortania and Hackdoc"
1919
self.patcher_name: str = "OCLP-R"
2020

@@ -166,7 +166,7 @@ def __init__(self) -> None:
166166
self.computer: device_probe.Computer = None # type: ignore
167167
self.custom_model: Optional[str] = None
168168
self.change_launchpad:bool = False
169-
169+
self.applehda_version:str="15.6"
170170

171171
## OpenCore Settings
172172
self.opencore_debug: bool = False # Enable OpenCore debug

oclp_r/sys_patch/patchsets/detect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
legacy_audio,
4444
legacy_usb11,
4545
modern_audio,
46-
Control,
46+
4747
Launch,
4848
modern_usb,
4949
pcie_webcam,
@@ -134,7 +134,7 @@ def __init__(self, constants: constants.Constants,
134134
modern_wireless.ModernWireless,
135135
legacy_audio.LegacyAudio,
136136
modern_audio.ModernAudio,
137-
Control.ModernControl,
137+
138138
Launch.LaunchPad,
139139
voodoo_audio.VoodooAudio,
140140
modern_usb.LegacyUSBHost,

oclp_r/sys_patch/patchsets/hardware/misc/Control.py

Lines changed: 0 additions & 82 deletions
This file was deleted.

oclp_r/sys_patch/patchsets/hardware/misc/modern_audio.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ def present(self) -> bool:
3030
"""
3131
AppleHDA was outright removed in macOS 26, so this patch set is always present if OS requires it
3232
"""
33-
33+
if utilities.check_kext_loaded("org.voodoo.driver.VoodooHDA") !="" and self._constants.audio_type!="AppleHDA":
34+
self._constants.audio_type="AppleHDA"
3435
return self._constants.audio_type=="AppleHDA" and utilities.check_kext_loaded("as.vit9696.AppleALC") !="" and utilities.check_kext_loaded("org.voodoo.driver.VoodooHDA") ==""
3536
def requires_kernel_debug_kit(self) -> bool:
3637
"""
@@ -45,7 +46,7 @@ def native_os(self) -> bool:
4546
return True
4647

4748
# Technically, macOS Tahoe Beta 1 is also native, so return True
48-
if self._os_build == "25A5279m":
49+
if self._os_build == "25A5279m" and self._constants.applehda_version=="26.0 Beta 1":
4950
return True
5051

5152
return False
@@ -66,7 +67,7 @@ def _modern_audio_patches(self) -> dict:
6667
"Modern Audio": {
6768
PatchType.OVERWRITE_SYSTEM_VOLUME: {
6869
"/System/Library/Extensions": {
69-
"AppleHDA.kext": "26.0 Beta 1",
70+
"AppleHDA.kext": f"{self._constants.applehda_version}",
7071
},
7172
},
7273
},

oclp_r/wx_gui/gui_settings.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,20 @@ def _settings(self) -> dict:
811811
"Center on Tahoe.",
812812
],
813813
"condition":self.condition_exp("CC")
814-
},
814+
},
815+
"AppleHDA.kext Version": {
816+
"type": "choice",
817+
"choices": [
818+
"15.6",
819+
"26.0 Beta 1"
820+
],
821+
"value": self.constants.applehda_version,
822+
"variable": "applehda_version",
823+
"constants_variable": "applehda_version",
824+
"description": [
825+
"",
826+
],
827+
},
815828
},
816829
"Non-Metal":{
817830
"Non-Metal Settings": {

0 commit comments

Comments
 (0)