mirror of
https://github.com/joel16/3DSident.git
synced 2024-11-23 03:29:45 +00:00
99fc2e4c58
Basically cleaning up and making sure functions succeed before returning the result.
17 lines
262 B
C
17 lines
262 B
C
#include "power.h"
|
|
#include "screenshot.h"
|
|
|
|
const char * batteryStatus(void)
|
|
{
|
|
u8 batteryStatus;
|
|
|
|
if (R_SUCCEEDED(PTMU_GetBatteryChargeState(&batteryStatus)))
|
|
{
|
|
if (batteryStatus)
|
|
return "charging";
|
|
|
|
return "not charging";
|
|
}
|
|
|
|
return NULL;
|
|
} |