devkitPro / libctru

Homebrew development library for Nintendo 3DS/Horizon OS user mode (Arm11)
https://libctru.devkitpro.org/
770 stars 170 forks source link

Fix NDMU_QueryStatus #543

Closed EpicUsername12 closed 1 month ago

EpicUsername12 commented 6 months ago

NDMU_QueryStatus actually expects a daemon name in cmdbuf[1]

Example usage:

ndmDaemonStatus status;
NDMU_QueryStatus(NDM_DAEMON_BOSS, &status);

if (status == NDM_DAEMON_STATUS_SUSPENDED) {
    // ...
}

As described here: https://www.3dbrew.org/wiki/NDMU:QueryStatus