ref: c60303e1c7341522872fe29350bfcee541585608
parent: ccd436bce7cfac5b0523a3f23ea8aff4f0bb2950
author: Clownacy <Clownacy@users.noreply.github.com>
date: Mon Oct 19 20:49:46 EDT 2020
3DS: More error handling
--- a/src/Backends/Audio/SoftwareMixer/3DS.cpp
+++ b/src/Backends/Audio/SoftwareMixer/3DS.cpp
@@ -93,7 +93,9 @@
if (stream_buffer != NULL)
{
- if (R_SUCCEEDED(ndspInit()))
+ Result rc = ndspInit();
+
+ if (R_SUCCEEDED(rc))
{
ndspSetCallback(Callback, NULL);
@@ -137,7 +139,10 @@
}
else
{
- Backend_PrintError("ndspInit failed");
+ if (R_SUMMARY(rc) == RS_NOTFOUND && R_MODULE(rc) == RM_DSP)
+ Backend_PrintError("Could not load DSP firmware - you might need to dump yours manually");
+ else
+ Backend_PrintError("ndspInit failed in SoftwareMixerBackend_Init");
}
linearFree(stream_buffer);