diff --git a/Changelog.md b/Changelog.md index 963e378c..027ec1c1 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,8 @@ WhateverGreen Changelog ======================= +#### v1.5.6 +- Fixed deprecated code in unfairgva + #### v1.5.5 - Changed the default delay of optimizing display data buffer allocations from 0 to 1 second to fix the issue that both internal and external displays flicker on some Ice Lake-based laptops. (Thanks @m0d16l14n1) - Disabled the black screen fix on Ice Lake platforms as it is only applicable to SKL/KBL/CFL/CML platforms. diff --git a/WhateverGreen/kern_unfair.cpp b/WhateverGreen/kern_unfair.cpp index 69f426c4..91048fdc 100644 --- a/WhateverGreen/kern_unfair.cpp +++ b/WhateverGreen/kern_unfair.cpp @@ -28,9 +28,6 @@ void UNFAIR::init() { if (disableUnfair) return; - - sharedCachePath = UserPatcher::getSharedCachePath(); - DBGLOG("unfair", "chosen shared cache path is %s", sharedCachePath); } void UNFAIR::deinit() { @@ -45,7 +42,7 @@ void UNFAIR::csValidatePage(vnode *vp, memory_object_t pager, memory_object_offs if (vn_getpath(vp, path, &pathlen) == 0) { //DBGLOG("unfair", "csValidatePage %s", path); - if ((callbackUNFAIR->unfairGva & UnfairDyldSharedCache) != 0 && UNLIKELY(strcmp(path, callbackUNFAIR->sharedCachePath) == 0)) { + if ((callbackUNFAIR->unfairGva & UnfairDyldSharedCache) != 0 && UserPatcher::matchSharedCachePath(path)) { if ((callbackUNFAIR->unfairGva & UnfairRelaxHdcpRequirements) != 0) { static const uint8_t find[29] = { 0x4D, 0x61, 0x63, 0x50, 0x72, 0x6F, 0x35, 0x2C, 0x31, 0x00, 0x4D, 0x61, 0x63, 0x50, 0x72, 0x6F, diff --git a/WhateverGreen/kern_unfair.hpp b/WhateverGreen/kern_unfair.hpp index 8cf6966e..c021249a 100644 --- a/WhateverGreen/kern_unfair.hpp +++ b/WhateverGreen/kern_unfair.hpp @@ -61,11 +61,6 @@ class UNFAIR { * Original codesign page validation pointer. */ mach_vm_address_t orgCsValidatePage {0}; - - /** - * Cyrrent shared cache. - */ - const char *sharedCachePath {nullptr}; }; #endif /* kern_unfair_hpp */