Move GameSpy server functions to sv_gamespy.h

This commit is contained in:
smallmodel 2025-04-27 18:00:23 +02:00
parent 0eb8f9f466
commit 7697fc49f6
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
3 changed files with 8 additions and 8 deletions

View file

@ -24,6 +24,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#pragma once #pragma once
#include "q_gamespy.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
@ -37,6 +39,11 @@ extern const char* GS_GetCurrentGameName();
void SV_CreateGamespyChallenge(char* challenge); void SV_CreateGamespyChallenge(char* challenge);
void SV_GamespyAuthorize(netadr_t from, const char* response); void SV_GamespyAuthorize(netadr_t from, const char* response);
void SV_GamespyHeartbeat();
void SV_ProcessGamespyQueries();
qboolean SV_InitGamespy();
void SV_ShutdownGamespy();
void SV_RestartGamespy();
#ifdef __cplusplus #ifdef __cplusplus
} }

View file

@ -633,14 +633,6 @@ void SV_NET_UpdateClientNetProfileInfo(netprofclient_t* netprofile, int rate);
void SV_NET_UpdateAllNetProfileInfo(); void SV_NET_UpdateAllNetProfileInfo();
void SV_NET_CalcTotalNetProfile(netprofclient_t* netprofile, qboolean server); void SV_NET_CalcTotalNetProfile(netprofclient_t* netprofile, qboolean server);
//
// sv_gamespy.c
//
void SV_GamespyHeartbeat();
void SV_ProcessGamespyQueries();
qboolean SV_InitGamespy();
void SV_ShutdownGamespy();
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

View file

@ -24,6 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "../client/client.h" #include "../client/client.h"
#include "../qcommon/tiki.h" #include "../qcommon/tiki.h"
#include "../qcommon/bg_compat.h" #include "../qcommon/bg_compat.h"
#include "../gamespy/sv_gamespy.h"
static char last_mapname[ MAX_QPATH ]; static char last_mapname[ MAX_QPATH ];
static int g_iSvsTimeFixupCount; static int g_iSvsTimeFixupCount;