feat(ElunaConfig): Add ElunaConfig using ConfigValueCache (#310)

This commit is contained in:
iThorgrim
2025-09-09 09:08:46 +02:00
committed by GitHub
parent 44f1f1f71b
commit 576d18753c
19 changed files with 121 additions and 41 deletions

View File

@@ -14,7 +14,7 @@
using namespace Hooks;
#define START_HOOK_SERVER(EVENT) \
if (!IsEnabled())\
if (!ElunaConfig::GetInstance().IsElunaEnabled())\
return;\
auto key = EventKey<ServerEvents>(EVENT);\
if (!ServerEventBindings->HasBindingsFor(key))\
@@ -22,7 +22,7 @@ using namespace Hooks;
LOCK_ELUNA
#define START_HOOK_PACKET(EVENT, OPCODE) \
if (!IsEnabled())\
if (!ElunaConfig::GetInstance().IsElunaEnabled())\
return;\
auto key = EntryKey<PacketEvents>(EVENT, OPCODE);\
if (!PacketEventBindings->HasBindingsFor(key))\