mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-26 03:40:05 +00:00
Added battery levels and link to 3dbrew
This commit is contained in:
parent
13dd0b88de
commit
bf97bac8dc
@ -13,19 +13,24 @@ class Interface;
|
|||||||
|
|
||||||
namespace PTM {
|
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 {
|
enum class ChargeLevels : u32 {
|
||||||
CriticalBattery = 1,
|
EmptyBattery = 0, ///0% battery left
|
||||||
LowBattery = 2,
|
CriticalBattery = 1, ///1% to %5 battery left
|
||||||
HalfFull = 3,
|
LowBattery = 2, ///6% to 10% battery left
|
||||||
MostlyFull = 4,
|
HalfFull = 3, ///11% to 30% battery left
|
||||||
CompletelyFull = 5,
|
MostlyFull = 4, ///31% to 60% battery left
|
||||||
|
CompletelyFull = 5, ///61% to 100% battery left
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents the gamecoin file structure in the SharedExtData archive
|
* Represents the gamecoin file structure in the SharedExtData archive
|
||||||
* More information in 3dbrew
|
* 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 {
|
struct GameCoin {
|
||||||
u32 magic; ///< Magic number: 0x4F00
|
u32 magic; ///< Magic number: 0x4F00
|
||||||
|
Loading…
Reference in New Issue
Block a user