From bf97bac8dc8101171b7bafcab854a0c8123e1373 Mon Sep 17 00:00:00 2001 From: Andrea Pascal Date: Fri, 12 May 2017 17:07:44 -0400 Subject: [PATCH] Added battery levels and link to 3dbrew --- src/core/hle/service/ptm/ptm.h | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/core/hle/service/ptm/ptm.h b/src/core/hle/service/ptm/ptm.h index 683fb445b..3eaf3e6a2 100644 --- a/src/core/hle/service/ptm/ptm.h +++ b/src/core/hle/service/ptm/ptm.h @@ -13,19 +13,24 @@ class Interface; namespace PTM { -/// Charge levels used by PTM functions +/** + * Charge levels used by PTM functions + * More information in 3dbrew + * (https://www.3dbrew.org/wiki/PTM:GetBatteryLevel#Output_Values) + */ enum class ChargeLevels : u32 { - CriticalBattery = 1, - LowBattery = 2, - HalfFull = 3, - MostlyFull = 4, - CompletelyFull = 5, + EmptyBattery = 0, ///0% battery left + CriticalBattery = 1, ///1% to %5 battery left + LowBattery = 2, ///6% to 10% battery left + HalfFull = 3, ///11% to 30% battery left + MostlyFull = 4, ///31% to 60% battery left + CompletelyFull = 5, ///61% to 100% battery left }; /** * Represents the gamecoin file structure in the SharedExtData archive * More information in 3dbrew - * (http://www.3dbrew.org/wiki/Extdata#Shared_Extdata_0xf000000b_gamecoin.dat) + * (https://www.3dbrew.org/wiki/Extdata#Shared_Extdata_0xf000000b_gamecoin.dat) */ struct GameCoin { u32 magic; ///< Magic number: 0x4F00