mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-27 13:14:01 +08:00
Basic JoinClanChatRoom implementation.
This commit is contained in:
parent
6308eb1e0c
commit
3f44827326
@ -481,7 +481,7 @@ SteamAPICall_t DownloadClanActivityCounts( STEAM_ARRAY_COUNT(cClansToRequest) CS
|
|||||||
// steamIDSource can be the steamID of a group, game server, lobby or chat room
|
// steamIDSource can be the steamID of a group, game server, lobby or chat room
|
||||||
int GetFriendCountFromSource( CSteamID steamIDSource )
|
int GetFriendCountFromSource( CSteamID steamIDSource )
|
||||||
{
|
{
|
||||||
PRINT_DEBUG("Steam_Friends::GetFriendCountFromSource\n");
|
PRINT_DEBUG("Steam_Friends::GetFriendCountFromSource %llu\n", steamIDSource.ConvertToUint64());
|
||||||
//TODO
|
//TODO
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -866,8 +866,13 @@ AppId_t GetFriendCoplayGame( CSteamID steamIDFriend )
|
|||||||
STEAM_CALL_RESULT( JoinClanChatRoomCompletionResult_t )
|
STEAM_CALL_RESULT( JoinClanChatRoomCompletionResult_t )
|
||||||
SteamAPICall_t JoinClanChatRoom( CSteamID steamIDClan )
|
SteamAPICall_t JoinClanChatRoom( CSteamID steamIDClan )
|
||||||
{
|
{
|
||||||
PRINT_DEBUG("Steam_Friends::JoinClanChatRoom\n");
|
PRINT_DEBUG("Steam_Friends::JoinClanChatRoom %llu\n", steamIDClan.ConvertToUint64());
|
||||||
return 0;
|
//TODO actually join a room
|
||||||
|
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
||||||
|
JoinClanChatRoomCompletionResult_t data;
|
||||||
|
data.m_steamIDClanChat = steamIDClan;
|
||||||
|
data.m_eChatRoomEnterResponse = k_EChatRoomEnterResponseSuccess;
|
||||||
|
return callback_results->addCallResult(data.k_iCallback, &data, sizeof(data));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LeaveClanChatRoom( CSteamID steamIDClan )
|
bool LeaveClanChatRoom( CSteamID steamIDClan )
|
||||||
|
@ -591,7 +591,7 @@ bool GetItemDefinitionIDs(
|
|||||||
STEAM_OUT_ARRAY_COUNT(punItemDefIDsArraySize,List of item definition IDs) SteamItemDef_t *pItemDefIDs,
|
STEAM_OUT_ARRAY_COUNT(punItemDefIDsArraySize,List of item definition IDs) SteamItemDef_t *pItemDefIDs,
|
||||||
STEAM_DESC(Size of array is passed in and actual size used is returned in this param) uint32 *punItemDefIDsArraySize )
|
STEAM_DESC(Size of array is passed in and actual size used is returned in this param) uint32 *punItemDefIDsArraySize )
|
||||||
{
|
{
|
||||||
PRINT_DEBUG("GetItemDefinitionIDs\n");
|
PRINT_DEBUG("GetItemDefinitionIDs %p\n", pItemDefIDs);
|
||||||
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
||||||
if (!punItemDefIDsArraySize)
|
if (!punItemDefIDsArraySize)
|
||||||
return false;
|
return false;
|
||||||
|
@ -189,7 +189,7 @@ bool GetAPICallResult( SteamAPICall_t hSteamAPICall, void *pCallback, int cubCal
|
|||||||
// Deprecated. Applications should use SteamAPI_RunCallbacks() instead. Game servers do not need to call this function.
|
// Deprecated. Applications should use SteamAPI_RunCallbacks() instead. Game servers do not need to call this function.
|
||||||
STEAM_PRIVATE_API( void RunFrame()
|
STEAM_PRIVATE_API( void RunFrame()
|
||||||
{
|
{
|
||||||
PRINT_DEBUG("RunFrame\n");
|
PRINT_DEBUG("Steam_Utils::RunFrame\n");
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user