fix OnDisplayUpdate event call

This commit is contained in:
Sonic Dreamcaster 2025-01-04 01:23:07 -03:00
parent 97e63d6b06
commit 9947aa8df1

View File

@ -6,7 +6,7 @@
#define INIT_EVENT_IDS #define INIT_EVENT_IDS
#include "port/hooks/Events.h" #include "port/hooks/Events.h"
void OnDisplayUpdatePre(IEvent* event) { void OnDisplayUpdatePost(IEvent* event) {
#if DEBUG_BOSS_KILLER == 1 #if DEBUG_BOSS_KILLER == 1
KillBoss(); KillBoss();
#endif #endif
@ -192,7 +192,7 @@ void PortEnhancements_Init() {
PortEnhancements_Register(); PortEnhancements_Register();
// Register event listeners // Register event listeners
REGISTER_LISTENER(DisplayPreUpdateEvent, OnDisplayUpdatePre, EVENT_PRIORITY_NORMAL); REGISTER_LISTENER(DisplayPostUpdateEvent, OnDisplayUpdatePost, EVENT_PRIORITY_NORMAL);
REGISTER_LISTENER(GamePostUpdateEvent, OnGameUpdatePost, EVENT_PRIORITY_NORMAL); REGISTER_LISTENER(GamePostUpdateEvent, OnGameUpdatePost, EVENT_PRIORITY_NORMAL);
REGISTER_LISTENER(PlayerPostUpdateEvent, OnPlayerUpdatePost, EVENT_PRIORITY_NORMAL); REGISTER_LISTENER(PlayerPostUpdateEvent, OnPlayerUpdatePost, EVENT_PRIORITY_NORMAL);