mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-08-08 08:35:40 +02:00
fix api build error because of g_pSteamClientGameServer
(defined as export & initialized)
This commit is contained in:
parent
3817160326
commit
5def4c4148
1 changed files with 3 additions and 3 deletions
|
@ -164,10 +164,10 @@ STEAMAPI_API HSteamUser SteamAPI_GetHSteamUser()
|
||||||
#ifdef STEAMCLIENT_DLL // client
|
#ifdef STEAMCLIENT_DLL // client
|
||||||
ISteamClient *g_pSteamClientGameServer{};
|
ISteamClient *g_pSteamClientGameServer{};
|
||||||
#else // api
|
#else // api
|
||||||
STEAMAPI_API ISteamClient *g_pSteamClientGameServer{};
|
STEAMAPI_API ISteamClient *g_pSteamClientGameServer;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static Steam_Client *steamclient_instance;
|
static Steam_Client *steamclient_instance{};
|
||||||
Steam_Client *get_steam_client()
|
Steam_Client *get_steam_client()
|
||||||
{
|
{
|
||||||
if (!steamclient_instance) {
|
if (!steamclient_instance) {
|
||||||
|
@ -201,7 +201,7 @@ Steam_Client *get_steam_clientserver_old()
|
||||||
return get_steam_client();
|
return get_steam_client();
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool steamclient_has_ipv6_functions_flag;
|
static bool steamclient_has_ipv6_functions_flag{};
|
||||||
bool steamclient_has_ipv6_functions()
|
bool steamclient_has_ipv6_functions()
|
||||||
{
|
{
|
||||||
return get_steam_client()->gameserver_has_ipv6_functions || steamclient_has_ipv6_functions_flag;
|
return get_steam_client()->gameserver_has_ipv6_functions || steamclient_has_ipv6_functions_flag;
|
||||||
|
|
Loading…
Add table
Reference in a new issue