mirror of https://github.com/mgba-emu/mgba.git
Switch: Fix build on latest libnx
This commit is contained in:
parent
d202cddd1b
commit
9eefc85b64
|
@ -659,7 +659,7 @@ static int _batteryState(void) {
|
|||
} else {
|
||||
return BATTERY_NOT_PRESENT;
|
||||
}
|
||||
ChargerType type;
|
||||
PsmChargerType type;
|
||||
if (R_SUCCEEDED(psmGetChargerType(&type)) && type) {
|
||||
state |= BATTERY_CHARGING;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue