From 1ca88106acacc4ff03ae927c2953cce358795b96 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Mon, 4 Aug 2025 10:15:52 +0200 Subject: [PATCH] update splib to 2.3.0 --- src/main.cpp | 5 ++--- xmake.lua | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 883a1c3..ea61461 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -56,11 +56,10 @@ td::game::World GetWorld() { auto data = stream.ReadMessage(td::protocol::PacketID::WorldData); td::game::World w; - WorldApply wa(w); + auto wa = std::make_shared(w); td::protocol::PacketDispatcher d; - d.RegisterHandler(td::protocol::PacketID::WorldHeader, &wa); - d.RegisterHandler(td::protocol::PacketID::WorldData, &wa); + d.RegisterHandler(wa); d.Dispatch(*header); d.Dispatch(*data); diff --git a/xmake.lua b/xmake.lua index 833c890..c4cf095 100644 --- a/xmake.lua +++ b/xmake.lua @@ -3,7 +3,7 @@ add_rules("mode.debug", "mode.release") add_repositories("persson-repo https://git.ale-pri.com/Persson-dev/xmake-repo.git") add_requires("imgui 1.92.0", {configs = {sdl3 = true, opengl3 = true}}) -add_requires("splib 2.2.2", "zlib") +add_requires("splib 2.3.0", "zlib") add_requires("libsdl3 3.2.16", "glew", "fpm", "enet6") set_languages("c++17")