Append a bool function PTM::GetShellState()

This commit is contained in:
JamePeng 2016-04-14 23:51:13 +08:00
parent 7b4dcacbb2
commit a69f22e48a
2 changed files with 7 additions and 0 deletions

View File

@ -44,6 +44,10 @@ void GetShellState(Service::Interface* self) {
cmd_buff[2] = shell_open ? 1 : 0;
}
bool GetShellState() {
return shell_open;
}
void GetBatteryLevel(Service::Interface* self) {
u32* cmd_buff = Kernel::GetCommandBuffer();

View File

@ -55,6 +55,9 @@ void GetAdapterState(Interface* self);
*/
void GetShellState(Interface* self);
// Return the 3DS's physical shell state
bool GetShellState();
/**
* PTM::GetBatteryLevel service function
* Outputs: