removing multiplex-sessions from matchmaking (#3357)
Some checks are pending
Nightly Build / Build Nightly (push) Waiting to run
Nightly Build / Recreate Release (push) Blocked by required conditions
Nightly Build / Check Recent Commit (push) Successful in 24s

This commit is contained in:
CringeArab 2024-07-15 14:01:22 +03:00 committed by GitHub
parent 49a34f5789
commit c08af13c48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions

View File

@ -29,9 +29,11 @@ namespace big
auto host_rid =
g_matchmaking_service->get_found_sessions()[i].info.m_net_player_data.m_gamer_handle.m_rockstar_id;
auto player = g_player_database_service->get_player_by_rockstar_id(host_rid);
auto multiplex_count = g_matchmaking_service->get_found_sessions()[i].attributes.multiplex_count;
if (g.session_browser.exclude_modder_sessions && player && player->block_join)
continue;
if ((g.session_browser.exclude_modder_sessions && player && player->block_join) ||
(g.session_browser.filter_multiplexed_sessions && multiplex_count > 1))
continue;
results[*num_sessions_found] = g_matchmaking_service->get_found_sessions()[i].info;
(*num_sessions_found)++;

View File

@ -43,8 +43,9 @@ namespace big
auto host_rid = session.info.m_net_player_data.m_gamer_handle.m_rockstar_id;
auto player = g_player_database_service->get_player_by_rockstar_id(host_rid);
if (g.session_browser.exclude_modder_sessions && player && player->block_join)
continue;
if ((g.session_browser.exclude_modder_sessions && player && player->block_join) ||
(g.session_browser.filter_multiplexed_sessions && session.attributes.multiplex_count > 1))
continue;
if (components::selectable(session_str, i == selected_session_idx))
{