mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-04-23 14:53:37 +03:00
lsteamclient: Execute any pending callback before ReleaseRequest.
CW-Bug-Id: #22729
This commit is contained in:
parent
d8bb7a778a
commit
a75d6e0a1a
@ -230,6 +230,7 @@ MANUAL_METHODS = {
|
||||
|
||||
"ISteamMatchmakingServers_PingServer": lambda ver, abi: abi == 'u',
|
||||
"ISteamMatchmakingServers_PlayerDetails": lambda ver, abi: abi == 'u',
|
||||
"ISteamMatchmakingServers_ReleaseRequest": lambda ver, abi: abi == 'w',
|
||||
"ISteamMatchmakingServers_RequestFavoritesServerList": lambda ver, abi: abi == 'u',
|
||||
"ISteamMatchmakingServers_RequestFriendsServerList": lambda ver, abi: abi == 'u',
|
||||
"ISteamMatchmakingServers_RequestHistoryServerList": lambda ver, abi: abi == 'u',
|
||||
|
@ -674,3 +674,18 @@ w_SteamNetworkingMessage_t_153a *__thiscall winISteamNetworkingUtils_SteamNetwor
|
||||
STEAMCLIENT_CALL( ISteamNetworkingUtils_SteamNetworkingUtils004_AllocateMessage, ¶ms );
|
||||
return params._ret;
|
||||
}
|
||||
|
||||
void __thiscall winISteamMatchmakingServers_SteamMatchMakingServers002_ReleaseRequest( struct w_steam_iface *_this, void *hServerListRequest )
|
||||
{
|
||||
struct ISteamMatchmakingServers_SteamMatchMakingServers002_ReleaseRequest_params params =
|
||||
{
|
||||
.linux_side = _this->u_iface,
|
||||
.hServerListRequest = hServerListRequest,
|
||||
};
|
||||
|
||||
TRACE("%p\n", _this);
|
||||
|
||||
execute_pending_callbacks(); /* execute any pending callbacks that might still need to use the request */
|
||||
|
||||
STEAMCLIENT_CALL( ISteamMatchmakingServers_SteamMatchMakingServers002_ReleaseRequest, ¶ms );
|
||||
}
|
||||
|
@ -346,7 +346,7 @@ void *CDECL CreateInterface(const char *name, int *return_code)
|
||||
return create_win_interface( name, params._ret );
|
||||
}
|
||||
|
||||
static void execute_pending_callbacks(void)
|
||||
void execute_pending_callbacks(void)
|
||||
{
|
||||
struct steamclient_next_callback_params params = {0};
|
||||
|
||||
|
@ -44,6 +44,8 @@ struct SteamInputActionEvent_t;
|
||||
typedef void (*CDECL win_SteamInputActionEventCallbackPointer)( struct SteamInputActionEvent_t * );
|
||||
void lin_SteamInputActionEventCallbackPointer( struct SteamInputActionEvent_t *dat );
|
||||
|
||||
extern void execute_pending_callbacks(void);
|
||||
|
||||
struct w_steam_iface *create_win_interface(const char *name, void *linux_side);
|
||||
void *alloc_mem_for_iface(size_t size, const char *iface_version);
|
||||
void *alloc_vtable(void *vtable, unsigned int method_count, const char *iface_version);
|
||||
|
@ -366,17 +366,6 @@ void * __thiscall winISteamMatchmakingServers_SteamMatchMakingServers002_Request
|
||||
return params._ret;
|
||||
}
|
||||
|
||||
void __thiscall winISteamMatchmakingServers_SteamMatchMakingServers002_ReleaseRequest(struct w_steam_iface *_this, void *hServerListRequest)
|
||||
{
|
||||
struct ISteamMatchmakingServers_SteamMatchMakingServers002_ReleaseRequest_params params =
|
||||
{
|
||||
.linux_side = _this->u_iface,
|
||||
.hServerListRequest = hServerListRequest,
|
||||
};
|
||||
TRACE("%p\n", _this);
|
||||
STEAMCLIENT_CALL( ISteamMatchmakingServers_SteamMatchMakingServers002_ReleaseRequest, ¶ms );
|
||||
}
|
||||
|
||||
gameserveritem_t_105 * __thiscall winISteamMatchmakingServers_SteamMatchMakingServers002_GetServerDetails(struct w_steam_iface *_this, void *hRequest, int32_t iServer)
|
||||
{
|
||||
struct ISteamMatchmakingServers_SteamMatchMakingServers002_GetServerDetails_params params =
|
||||
|
Loading…
x
Reference in New Issue
Block a user