devkitPro / libctru

Homebrew development library for Nintendo 3DS/Horizon OS user mode (Arm11)

Home Page:https://libctru.devkitpro.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing function PTM:GetAdapterState

GerbilSoft opened this issue · comments

https://3dbrew.org/wiki/PTM:GetAdapterState

This function doesn't have a wrapper available. It isn't the same as PTM:GetBatteryChargeState; it indicates if an AC adapter is connected at all. It's possible that PTM:GetBatteryChargeState returns 0 while PTM:GetAdapterState returns 1; this means that the battery is fully charged, but the system is still plugged in.

This was fixed by PR #361.