Prevented fanfares from playing in headless mode (#6219)

This commit is contained in:
psf 2025-02-09 04:06:22 -08:00 committed by GitHub
parent 43bce41796
commit a8c9857a56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,6 +8,7 @@
#include "constants/cries.h"
#include "constants/songs.h"
#include "task.h"
#include "test_runner.h"
struct Fanfare
{
@ -237,6 +238,13 @@ bool8 IsFanfareTaskInactive(void)
static void Task_Fanfare(u8 taskId)
{
if (gTestRunnerHeadless)
{
DestroyTask(taskId);
sFanfareCounter = 0;
return;
}
if (sFanfareCounter)
{
sFanfareCounter--;