Skip to content

Commit

Permalink
Improve SMCBatteryManager compatibility with 10.15
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Jul 5, 2019
1 parent 25639db commit 07689c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 2 additions & 0 deletions Sensors/SMCBatteryManager/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>IOClass</key>
<string>SMCSMBusController</string>
<key>IOMatchCategory</key>
<string>SMCSMBusController</string>
<key>IOProviderClass</key>
<string>IOResources</string>
<key>IOResourceMatch</key>
Expand Down
3 changes: 0 additions & 3 deletions Sensors/SMCBatteryManager/SMCSMBusController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 07689c9

Please sign in to comment.