mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
592f69ec69
Currently when using RGUI on MiyooCFW (on a Powkiddy V90), despite enabling "Show Battery Level", nothing is shown. This change fixes that by comparing the correct voltage_now file. There are no min/max files on the device so they're hardcoded similar to GMenu2X's indicator. Results are based on value distribution while running a game at max load. GMenu2X battery level logic:7d51f8c22b/src/gmenu2x.cpp (L2587-L2598)
Miyoo battery properties:f60025f034/drivers/power/supply/miyoo-battery.c (L62-L72)
RGUI battery level update: https://www.libretro.com/index.php/retroarch-1-7-7-ui-updates/