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 {
|
} else {
|
||||||
return BATTERY_NOT_PRESENT;
|
return BATTERY_NOT_PRESENT;
|
||||||
}
|
}
|
||||||
ChargerType type;
|
PsmChargerType type;
|
||||||
if (R_SUCCEEDED(psmGetChargerType(&type)) && type) {
|
if (R_SUCCEEDED(psmGetChargerType(&type)) && type) {
|
||||||
state |= BATTERY_CHARGING;
|
state |= BATTERY_CHARGING;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue