From 9f151fa13022e345e45aa5673e0e168b0ce96cb6 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Thu, 9 Oct 2025 03:45:58 -0300 Subject: update sqlite driver + impl INTERNAL_RESOLVE_WORLD With this change the game server is able to login again but we still need to re-implement/re-fit the other queries for it to properly startup. --- src/querymanager.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/querymanager.cc') diff --git a/src/querymanager.cc b/src/querymanager.cc index 84d3625..d9f7ab8 100644 --- a/src/querymanager.cc +++ b/src/querymanager.cc @@ -153,6 +153,16 @@ bool StringCopy(char *Dest, int DestCapacity, const char *Src){ return StringCopyN(Dest, DestCapacity, Src, SrcLength); } +uint32 HashString(const char *String){ + // FNV1a 32-bits + uint32 Hash = 0x811C9DC5U; + for(int i = 0; String[i] != 0; i += 1){ + Hash ^= (uint32)String[i]; + Hash *= 0x01000193U; + } + return Hash; +} + bool ParseIPAddress(const char *String, int *OutAddr){ if(StringEmpty(String)){ LOG_ERR("Empty IP Address"); -- cgit v1.2.3