From dbc6df5c4e21cd9c285bac742bbc91b2f247b407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= Date: Mon, 2 Sep 2024 10:31:32 +0100 Subject: [PATCH] chore: triggers number of clock frames --- frontends/web/ts/gb.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/web/ts/gb.ts b/frontends/web/ts/gb.ts index c2330407..b068ef71 100644 --- a/frontends/web/ts/gb.ts +++ b/frontends/web/ts/gb.ts @@ -218,7 +218,7 @@ export class GameboyEmulator extends EmulatorLogic implements Emulator { ); const executedCycles = Number(this.clockFrame.cycles); if (this.clockFrame.frames > 0) { - this.trigger("frame"); + this.trigger("frame", { count: this.clockFrame.frames }); } // triggers the audio event, meaning that the audio should be