diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-12-27 17:46:16 -0600 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2025-01-03 16:56:49 -0600 |
| commit | e4d43881795c30f32647df9bfdf534236e84f082 (patch) | |
| tree | 428305d6880c71469dc25341a73b2cb9994b5a1b /src/port/Engine.cpp | |
| parent | 745af556ca19868486eae95135f967e34a370585 (diff) | |
Moved port cvars out of display update
Diffstat (limited to 'src/port/Engine.cpp')
| -rw-r--r-- | src/port/Engine.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp index 2acdd9f9..6e40a442 100644 --- a/src/port/Engine.cpp +++ b/src/port/Engine.cpp @@ -37,9 +37,7 @@ #include <VertexFactory.h> #include "audio/GameAudio.h" #include "port/patches/DisplayListPatch.h" - -#include "port/hooks/impl/EventSystem.h" -#include "port/hooks/Events.h" +#include "port/mods/PortEnhancements.h" #include <Fast3D/gfx_pc.h> #include <SDL2/SDL.h> @@ -188,15 +186,11 @@ void GameEngine::Create() { #if defined(__SWITCH__) || defined(__WIIU__) CVarRegisterInteger("gControlNav", 1); // always enable controller nav on switch/wii u #endif - - EventSystem::Instance->RegisterListener(EVENT_PLAYER_SHOT, EVENT_PRIORITY_NORMAL, [](IEvent* event) { - auto pse = (PlayerShotEvent*) event; - SPDLOG_INFO("Player shot event fired for actor {}", pse->actorId); - }); - + PortEnhancements_Init(); } void GameEngine::Destroy() { + PortEnhancements_Exit(); AudioExit(); free(MemoryPool.memory); } |
