disable audio in applet mode due to audren fatal.

fixes #92
This commit is contained in:
ITotalJustice
2025-01-16 21:03:26 +00:00
parent 657c160599
commit 5612ae5691

View File

@@ -1265,9 +1265,14 @@ App::App(const char* argv0) {
}
}
// only enable audio in non-applet mode due to audren fatal.
// see: https://github.com/ITotalJustice/sphaira/issues/92
if (IsApplication()) {
plsrPlayerInit();
}
if (R_SUCCEEDED(romfsMountDataStorageFromProgram(0x0100000000001000, "qlaunch"))) {
ON_SCOPE_EXIT(romfsUnmount("qlaunch"));
plsrPlayerInit();
PLSR_BFSAR qlaunch_bfsar;
if (R_SUCCEEDED(plsrBFSAROpen("qlaunch:/sound/qlaunch.bfsar", &qlaunch_bfsar))) {
ON_SCOPE_EXIT(plsrBFSARClose(&qlaunch_bfsar));