PlayCover / PlayTools

Tools for keymapping, dynamic resolution, and more
GNU Affero General Public License v3.0
71 stars 56 forks source link

Fix BatteryLevel not available #165

Closed Catta1997 closed 3 months ago

Catta1997 commented 3 months ago

Some games use the device battery level and can cause some games to not work/show incorrect value. This commit fix it passing a 100% battery

battery_level

https://github.com/PlayCover/PlayCover/issues/1522

einstein95 commented 3 months ago

Any reason why this is under the adaptiveDisplay setting?

Catta1997 commented 3 months ago

Any reason why this is under the adaptiveDisplay setting?

No, I added it in that file because there were other swizzleInstanceMethod and I wasn't sure if they would work in other files. But if there is a better place I will move them