diff --git a/zsnes/src/win/winlink.cpp b/zsnes/src/win/winlink.cpp index 481fc5e7..b7946ff6 100644 --- a/zsnes/src/win/winlink.cpp +++ b/zsnes/src/win/winlink.cpp @@ -3089,4 +3089,13 @@ void InitDebugger() } } +unsigned int WinCheckBatteryTime() +{ + SYSTEM_POWER_STATUS SysPowerStat; + + GetSystemPowerStatus(&SysPowerStat); + + return SysPowerStat.BatteryLifeTime; +} + }