diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-10-09 03:45:58 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-10-09 03:45:58 -0300 |
| commit | 9f151fa13022e345e45aa5673e0e168b0ce96cb6 (patch) | |
| tree | 470cb3cec5049eba42f71941c0cf4bff4dd263e2 /src/querymanager.cc | |
| parent | 708bd2e3cf0a7aa825e6da96caaec55bd271f896 (diff) | |
| download | querymanager-9f151fa13022e345e45aa5673e0e168b0ce96cb6.tar.gz querymanager-9f151fa13022e345e45aa5673e0e168b0ce96cb6.zip | |
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.
Diffstat (limited to 'src/querymanager.cc')
| -rw-r--r-- | src/querymanager.cc | 10 |
1 files changed, 10 insertions, 0 deletions
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"); |
