Use functions that return master host information

This splits gamespy client-specific and server-specific code and add common gamespy code to provide more flexibility in the future
This commit is contained in:
smallmodel 2025-04-22 21:40:34 +02:00
parent 01367d0731
commit a2bbf6cff8
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
12 changed files with 176 additions and 8 deletions

View file

@ -6,6 +6,12 @@ add_subdirectory("../fgame" "./fgame")
file(GLOB_RECURSE SOURCES_SERVER "./*.c*")
set(SOURCES_SERVER ${SOURCES_SERVER}
# Gamespy
"${CMAKE_SOURCE_DIR}/code/gamespy/sv_gamespy.c"
"${CMAKE_SOURCE_DIR}/code/gamespy/sv_gqueryreporting.c"
)
add_library(omohserver INTERFACE)
target_sources(omohserver INTERFACE ${SOURCES_SERVER})
target_compile_features(omohserver INTERFACE cxx_nullptr)