mirror of
https://github.com/HarbourMasters/Starship
synced 2026-06-17 23:41:09 -04:00
Moved port cvars out of display update
This commit is contained in:
+3
-9
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user