Add Device Power State (Windows, Linux, Mac and Android) (#197)

Uses native power state methods to display battery percentage and charging state correctly. Mainly for qlaunch.
Tested on Windows, Linux. Mac and Android

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/197
Co-authored-by: Maufeat <sahyno1996@gmail.com>
Co-committed-by: Maufeat <sahyno1996@gmail.com>
This commit is contained in:
Maufeat 2025-06-18 08:34:54 +00:00 committed by Maufeat
parent 6bf5ae700a
commit 8c33b0bb5d
11 changed files with 269 additions and 14 deletions

View file

@ -42,6 +42,8 @@ add_library(common STATIC
demangle.h
detached_tasks.cpp
detached_tasks.h
device_power_state.cpp
device_power_state.h
div_ceil.h
dynamic_library.cpp
dynamic_library.h