Expose ISteamGameServer::SetGameData (#23)
* Some men just want to watch the world burn. * Fix an awful regression psychonic has introduced into the tree.
This commit is contained in:
committed by
Kyle Sanderson
parent
c97fa05521
commit
df97c60298
@@ -88,6 +88,22 @@ static cell_t sm_IsLoaded(IPluginContext *pContext, const cell_t *params)
|
||||
return IsSteamWorksLoaded() ? 1 : 0;
|
||||
}
|
||||
|
||||
static cell_t sm_SetGameData(IPluginContext *pContext, const cell_t *params)
|
||||
{
|
||||
ISteamGameServer *pServer = GetGSPointer();
|
||||
|
||||
if (pServer == NULL)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
char *pData;
|
||||
pContext->LocalToString(params[1], &pData);
|
||||
|
||||
pServer->SetGameData(pData);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static cell_t sm_SetGameDescription(IPluginContext *pContext, const cell_t *params)
|
||||
{
|
||||
ISteamGameServer *pServer = GetGSPointer();
|
||||
@@ -267,6 +283,7 @@ static sp_nativeinfo_t gsnatives[] = {
|
||||
{"SteamWorks_GetPublicIP", sm_GetPublicIP},
|
||||
{"SteamWorks_GetPublicIPCell", sm_GetPublicIPCell},
|
||||
{"SteamWorks_IsLoaded", sm_IsLoaded},
|
||||
{"SteamWorks_SetGameData", sm_SetGameData},
|
||||
{"SteamWorks_SetGameDescription", sm_SetGameDescription},
|
||||
{"SteamWorks_SetMapName", sm_SetMapName},
|
||||
{"SteamWorks_IsConnected", sm_IsConnected},
|
||||
|
||||
@@ -216,6 +216,7 @@ native bool:SteamWorks_IsVACEnabled();
|
||||
native bool:SteamWorks_GetPublicIP(ipaddr[4]);
|
||||
native SteamWorks_GetPublicIPCell();
|
||||
native bool:SteamWorks_IsLoaded();
|
||||
native bool:SteamWorks_SetGameData(const String:sData[]);
|
||||
native bool:SteamWorks_SetGameDescription(const String:sDesc[]);
|
||||
native bool:SteamWorks_SetMapName(const String:sMapName[]);
|
||||
native bool:SteamWorks_IsConnected();
|
||||
@@ -331,6 +332,7 @@ public __ext_SteamWorks_SetNTVOptional()
|
||||
MarkNativeAsOptional("SteamWorks_GetPublicIP");
|
||||
MarkNativeAsOptional("SteamWorks_GetPublicIPCell");
|
||||
MarkNativeAsOptional("SteamWorks_IsLoaded");
|
||||
MarkNativeAsOptional("SteamWorks_SetGameData");
|
||||
MarkNativeAsOptional("SteamWorks_SetGameDescription");
|
||||
MarkNativeAsOptional("SteamWorks_IsConnected");
|
||||
MarkNativeAsOptional("SteamWorks_SetRule");
|
||||
|
||||
Reference in New Issue
Block a user