Skip to content

Commit 2086a54

Browse files
authored
Fix backwards compatibility up to Yosemite
1 parent 6aba6b9 commit 2086a54

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

genericPatcher/kern_patchset.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static const char* kextPaths[] {
2020
};
2121

2222
static KernelPatcher::KextInfo kextList[] {
23-
{ "com.apple.driver.AppleIntelFramebufferAzul", &kextPaths[0], 1, {true,true}, {}, KernelPatcher::KextInfo::Unloaded },
23+
{ "com.apple.driver.AppleIntelFramebufferAzul", &kextPaths[0], 1, {true, true}, {}, KernelPatcher::KextInfo::Unloaded },
2424
};
2525

2626
template <typename T,unsigned S>
@@ -57,7 +57,7 @@ void PatchSet::processKext(KernelPatcher& patcher, size_t index, mach_vm_address
5757
const uint8_t replace[] = {0xff, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00};
5858
KextPatch kext_patch {
5959
{&kextList[i], find, replace, sizeof(find), 2},
60-
KernelVersion::HighSierra, KernelVersion::HighSierra
60+
KernelVersion::Yosemite, KernelVersion::HighSierra
6161
};
6262
applyPatches(patcher, index, &kext_patch, 1);
6363
SYSLOG("coderobe.AzulPatcher4600", "disabled port 0204");
@@ -67,7 +67,7 @@ void PatchSet::processKext(KernelPatcher& patcher, size_t index, mach_vm_address
6767
const uint8_t replace1[] = {0x06, 0x00, 0x26, 0x0a, 0x01, 0x03, 0x02, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x30, 0x01, 0x00, 0x00, 0x90, 0x00};
6868
KextPatch kext_patch1 {
6969
{&kextList[i], find1, replace1, sizeof(find1), 2},
70-
KernelVersion::HighSierra, KernelVersion::HighSierra
70+
KernelVersion::Yosemite, KernelVersion::HighSierra
7171
};
7272
applyPatches(patcher, index, &kext_patch1, 1);
7373
SYSLOG("coderobe.AzulPatcher4600", "9MB cursor byte patch (2 ports only) applied");
@@ -77,7 +77,7 @@ void PatchSet::processKext(KernelPatcher& patcher, size_t index, mach_vm_address
7777
const uint8_t replace2[] = {0x01, 0x05, 0x12, 0x00, 0x00, 0x08, 0x00, 0x00, 0x87, 0x00, 0x00, 0x00};
7878
KextPatch kext_patch2 {
7979
{&kextList[i], find2, replace2, sizeof(find2), 2},
80-
KernelVersion::HighSierra, KernelVersion::HighSierra
80+
KernelVersion::Yosemite, KernelVersion::HighSierra
8181
};
8282
applyPatches(patcher, index, &kext_patch2, 1);
8383
SYSLOG("coderobe.AzulPatcher4600", "HDMI audio patch applied");

0 commit comments

Comments
 (0)