mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-03-28 14:56:24 +01:00
change the server type parameter of the request before continuing the code, since it's used multiple times and also being set in the request object
This commit is contained in:
parent
3d836d694d
commit
dfc8be4a7c
1 changed files with 6 additions and 1 deletions
|
@ -42,6 +42,11 @@ HServerListRequest Steam_Matchmaking_Servers::RequestServerList(AppId_t iApp, IS
|
|||
++server_list_request;
|
||||
HServerListRequest id = (char *)0 + server_list_request; // (char *)0 silences the compiler warning
|
||||
|
||||
if (settings->matchmaking_server_list_always_lan_type) {
|
||||
PRINT_DEBUG("Steam_Matchmaking_Servers::RequestServerList forcing request type to LAN\n");
|
||||
type = EMatchMakingType::eLANServer;
|
||||
}
|
||||
|
||||
struct Steam_Matchmaking_Request request{};
|
||||
request.appid = iApp;
|
||||
request.callbacks = pRequestServersResponse;
|
||||
|
@ -53,7 +58,7 @@ HServerListRequest Steam_Matchmaking_Servers::RequestServerList(AppId_t iApp, IS
|
|||
requests.push_back(request);
|
||||
PRINT_DEBUG("Steam_Matchmaking_Servers::request id: %p\n", id);
|
||||
|
||||
if (type == eLANServer || settings->matchmaking_server_list_always_lan_type) return id;
|
||||
if (type == eLANServer) return id;
|
||||
|
||||
if (type == eFriendsServer) {
|
||||
for (auto &g : gameservers_friends) {
|
||||
|
|
Loading…
Add table
Reference in a new issue