Renamed some events

This commit is contained in:
KiritoDv 2024-12-28 15:12:04 -06:00 committed by Lywx
parent bc45e3ca87
commit b403f5fbe7
4 changed files with 15 additions and 15 deletions

View File

@ -1781,8 +1781,8 @@ void Display_Update(void) {
}
#endif
// @port: @event: Call DISPLAY_UPDATE_EVENT_PRE
EventSystem_CallEvent(DISPLAY_UPDATE_EVENT_PRE, NULL);
// @port: @event: Call DisplayPreUpdateEvent
EventSystem_CallEvent(DisplayPreUpdateEvent, NULL);
Matrix_Push(&gGfxMatrix);
if ((gCurrentLevel == LEVEL_AQUAS) && (gPlayer[0].state == PLAYERSTATE_ACTIVE)) {
@ -2015,6 +2015,6 @@ void Display_Update(void) {
sPlayersVisible[gPlayerNum] = false;
Matrix_Pop(&gGfxMatrix);
// @port: @event: Call DISPLAY_UPDATE_EVENT_POST
EventSystem_CallEvent(DISPLAY_UPDATE_EVENT_POST, NULL);
// @port: @event: Call DisplayPostUpdateEvent
EventSystem_CallEvent(DisplayPostUpdateEvent, NULL);
}

View File

@ -347,8 +347,8 @@ void Game_Update(void) {
u8 partialFill;
u8 soundMode;
// @port: @event: Call GAME_UPDATE_EVENT_PRE
EventSystem_CallEvent(GAME_UPDATE_EVENT_PRE, NULL);
// @port: @event: Call GamePreUpdateEvent
EventSystem_CallEvent(GamePreUpdateEvent, NULL);
Game_SetGameState();
if (gGameStandby) {
@ -605,8 +605,8 @@ void Game_Update(void) {
}
Audio_dummy_80016A50();
// @port: @event: Call GAME_UPDATE_EVENT_POST
EventSystem_CallEvent(GAME_UPDATE_EVENT_POST, NULL);
// @port: @event: Call GamePostUpdateEvent
EventSystem_CallEvent(GamePostUpdateEvent, NULL);
}
}

View File

@ -2,8 +2,8 @@
#include "port/hooks/impl/EventSystem.h"
#define DISPLAY_UPDATE_EVENT_PRE INTERNAL_EVENT_ID(1, EVENT_TYPE_PRE)
#define DISPLAY_UPDATE_EVENT_POST INTERNAL_EVENT_ID(1, EVENT_TYPE_POST)
#define DisplayPreUpdateEvent INTERNAL_EVENT_ID(1, EVENT_TYPE_PRE)
#define DisplayPostUpdateEvent INTERNAL_EVENT_ID(1, EVENT_TYPE_POST)
#define GAME_UPDATE_EVENT_PRE INTERNAL_EVENT_ID(2, EVENT_TYPE_PRE)
#define GAME_UPDATE_EVENT_POST INTERNAL_EVENT_ID(2, EVENT_TYPE_POST)
#define GamePreUpdateEvent INTERNAL_EVENT_ID(2, EVENT_TYPE_PRE)
#define GamePostUpdateEvent INTERNAL_EVENT_ID(2, EVENT_TYPE_POST)

View File

@ -1,5 +1,5 @@
#include "PortEnhancements.h"
#include "port/hooks/list/EngineEvent.h"
#include "port/hooks/Events.h"
#include "global.h"
#include "hit64.h"
#include "mods.h"
@ -157,8 +157,8 @@ void OnGameUpdatePost(IEvent* event) {
void PortEnhancements_Init() {
// Register event listeners
EventSystem_RegisterListener(DISPLAY_UPDATE_EVENT_PRE, OnDisplayUpdatePre, EVENT_PRIORITY_NORMAL);
EventSystem_RegisterListener(GAME_UPDATE_EVENT_POST, OnGameUpdatePost, EVENT_PRIORITY_NORMAL);
EventSystem_RegisterListener(DisplayPreUpdateEvent, OnDisplayUpdatePre, EVENT_PRIORITY_NORMAL);
EventSystem_RegisterListener(GamePostUpdateEvent, OnGameUpdatePost, EVENT_PRIORITY_NORMAL);
}
void PortEnhancements_Exit() {