@@ -20,7 +20,7 @@ static const char* kextPaths[] {
2020};
2121
2222static KernelPatcher::KextInfo kextList[] {
23- { " com.apple.driver.AppleIntelFramebufferAzul" , &kextPaths[0 ], 1 , true , {}, KernelPatcher::KextInfo::Unloaded },
23+ { " com.apple.driver.AppleIntelFramebufferAzul" , &kextPaths[0 ], 1 , { true , true } , {}, KernelPatcher::KextInfo::Unloaded },
2424};
2525
2626template <typename T,unsigned S>
@@ -35,7 +35,7 @@ bool PatchSet::init() {
3535 }, this );
3636
3737 if (error != LiluAPI::Error::NoError) {
38- SYSLOG (" coderobe.AzulPatcher4600: failed to register onPatcherLoad method %d" , error);
38+ SYSLOG (" coderobe.AzulPatcher4600" , " failed to register onPatcherLoad method %d" , error);
3939 return false ;
4040 }
4141
@@ -50,37 +50,37 @@ void PatchSet::processKext(KernelPatcher& patcher, size_t index, mach_vm_address
5050 for (size_t i = 0 ; i < kextListSize; i++) {
5151 if (kextList[i].loadIndex == index) {
5252 if (!(progressState & ProcessingState::EverythingDone) && !strcmp (kextList[i].id , kextList[0 ].id )) {
53- SYSLOG (" coderobe.AzulPatcher4600: found %s" , kextList[i].id );
53+ SYSLOG (" coderobe.AzulPatcher4600" , " found %s" , kextList[i].id );
5454
5555 // Disable port 0204
5656 const uint8_t find[] = {0x02 , 0x04 , 0x09 , 0x00 , 0x00 , 0x04 , 0x00 , 0x00 , 0x87 , 0x00 , 0x00 , 0x00 };
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::Sierra , KernelVersion::Sierra
60+ KernelVersion::HighSierra , KernelVersion::HighSierra
6161 };
6262 applyPatches (patcher, index, &kext_patch, 1 );
63- SYSLOG (" coderobe.AzulPatcher4600: disabled port 0204" );
63+ SYSLOG (" coderobe.AzulPatcher4600" , " disabled port 0204" );
6464
6565 // 9MB cursor bytes, 2 ports only
6666 const uint8_t find1[] = {0x06 , 0x00 , 0x26 , 0x0a , 0x01 , 0x03 , 0x03 , 0x03 , 0x00 , 0x00 , 0x00 , 0x02 , 0x00 , 0x00 , 0x30 , 0x01 , 0x00 , 0x00 , 0x60 , 0x00 };
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::Sierra , KernelVersion::Sierra
70+ KernelVersion::HighSierra , KernelVersion::HighSierra
7171 };
7272 applyPatches (patcher, index, &kext_patch1, 1 );
73- SYSLOG (" coderobe.AzulPatcher4600: 9MB cursor byte patch (2 ports only) applied" );
73+ SYSLOG (" coderobe.AzulPatcher4600" , " 9MB cursor byte patch (2 ports only) applied" );
7474
7575 // HDMI audio
7676 const uint8_t find2[] = {0x01 , 0x05 , 0x09 , 0x00 , 0x00 , 0x04 , 0x00 , 0x00 , 0x87 , 0x00 , 0x00 , 0x00 };
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::Sierra , KernelVersion::Sierra
80+ KernelVersion::HighSierra , KernelVersion::HighSierra
8181 };
8282 applyPatches (patcher, index, &kext_patch2, 1 );
83- SYSLOG (" coderobe.AzulPatcher4600: HDMI audio patch applied" );
83+ SYSLOG (" coderobe.AzulPatcher4600" , " HDMI audio patch applied" );
8484 progressState |= ProcessingState::EverythingDone;
8585 }
8686 }
@@ -94,7 +94,7 @@ void PatchSet::applyPatches(KernelPatcher& patcher, size_t index, const KextPatc
9494 auto &patch = patches[p];
9595 if (patch.patch .kext ->loadIndex == index) {
9696 if (patcher.compatibleKernel (patch.minKernel , patch.maxKernel )) {
97- SYSLOG (" coderobe.AzulPatcher4600: patching %s (%ld/%ld)..." , patch.patch .kext ->id , p+1 , patchNum);
97+ SYSLOG (" coderobe.AzulPatcher4600" , " patching %s (%ld/%ld)..." , patch.patch .kext ->id , p+1 , patchNum);
9898 patcher.applyLookupPatch (&patch.patch );
9999 patcher.clearError ();
100100 }
0 commit comments