Closed aliaspider closed 9 years ago
specifically, calling DSP_UnloadComponent when the status is still APP_NOTINITIALIZED seems to be the problem. this doesn't affect 3dsx builds started from the HBL currently since they start with the APP_RUNNING status.
DSP_UnloadComponent
APP_NOTINITIALIZED
APP_RUNNING
adding
if(!aptGetStatus()) aptWaitStatusEvent();
before this line https://github.com/smealum/ctrulib/blob/great-refactor/libctru/source/services/dsp.c#L17 prevents the deadlock.
Fixed with 6bdfa1a.
specifically, calling
DSP_UnloadComponent
when the status is stillAPP_NOTINITIALIZED
seems to be the problem. this doesn't affect 3dsx builds started from the HBL currently since they start with theAPP_RUNNING
status.adding
before this line https://github.com/smealum/ctrulib/blob/great-refactor/libctru/source/services/dsp.c#L17 prevents the deadlock.