Refactor and combat changes

This commit is contained in:
wincent
2024-06-02 09:53:56 +02:00
parent 0bf5ee02e4
commit d5b2278dc5
43 changed files with 27298 additions and 386 deletions

View File

@@ -81,6 +81,8 @@
#include "eLoginResponse.h"
#include "SlashCommandHandler.h"
#include "NejlikaHooks.h"
namespace Game {
Logger* logger = nullptr;
dServer* server = nullptr;
@@ -315,6 +317,8 @@ int main(int argc, char** argv) {
// Register slash commands if not in zone 0
if (zoneID != 0) SlashCommandHandler::Startup();
nejlika::NejlikaHooks::InstallHooks();
Game::logger->Flush(); // once immediately before the main loop
while (true) {
Metrics::StartMeasurement(MetricVariable::Frame);