only disable audio in applet mode if an app is suspended, bump version.

This commit is contained in:
ITotalJustice
2025-01-17 03:52:32 +00:00
parent 0aaf460dbf
commit e002aa9ec2
3 changed files with 20 additions and 3 deletions

View File

@@ -1282,9 +1282,11 @@ App::App(const char* argv0) {
}
}
// only enable audio in non-applet mode due to audren fatal.
// disable audio in applet mode with a suspended application due to audren fatal.
// see: https://github.com/ITotalJustice/sphaira/issues/92
if (IsApplication()) {
if (IsAppletWithSuspendedApp()) {
App::Notify("Audio disabled due to suspended game"_i18n);
} else {
plsrPlayerInit();
}