From 07689c99cb53be986910de84b9ea6419a0853d74 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Fri, 5 Jul 2019 13:41:06 +0300 Subject: [PATCH] Improve SMCBatteryManager compatibility with 10.15 Closes acidanthera/bugtracker#408 --- Changelog.md | 1 + Sensors/SMCBatteryManager/Info.plist | 2 ++ Sensors/SMCBatteryManager/SMCSMBusController.cpp | 3 --- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Changelog.md b/Changelog.md index 7f1ef1b..4cb5071 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,6 +2,7 @@ VirtualSMC Changelog ==================== #### v1.0.6 - Fixed `vsmcgen=1` support on select models +- Improve SMCBatteryManager compatibility with 10.15 #### v1.0.5 - Allow loading on 10.15 without `-lilubetaall` diff --git a/Sensors/SMCBatteryManager/Info.plist b/Sensors/SMCBatteryManager/Info.plist index 6b37391..f16f785 100644 --- a/Sensors/SMCBatteryManager/Info.plist +++ b/Sensors/SMCBatteryManager/Info.plist @@ -28,6 +28,8 @@ $(PRODUCT_BUNDLE_IDENTIFIER) IOClass SMCSMBusController + IOMatchCategory + SMCSMBusController IOProviderClass IOResources IOResourceMatch diff --git a/Sensors/SMCBatteryManager/SMCSMBusController.cpp b/Sensors/SMCBatteryManager/SMCSMBusController.cpp index 12d79a5..59205c8 100644 --- a/Sensors/SMCBatteryManager/SMCSMBusController.cpp +++ b/Sensors/SMCBatteryManager/SMCSMBusController.cpp @@ -32,9 +32,6 @@ IOService *SMCSMBusController::probe(IOService *provider, SInt32 *score) { if (!BatteryManager::getShared()->probe()) return nullptr; - // On macOS 10.15 probe score is 0. - *score = 100000000; - return this; }