优化连接中继信息返回逻辑,简化直连状态判断

This commit is contained in:
Ayndpa
2025-11-19 21:38:14 +08:00
parent e01f08c655
commit 04ce1a4a03

View File

@@ -222,13 +222,9 @@ std::string SteamNetworkingManager::getConnectionRelayInfo(HSteamNetConnection c
{
return "中继";
}
else if (info.m_nFlags & k_nSteamNetworkConnectionInfoFlags_Fast)
{
return "直连";
}
else
{
return "未知";
return "直连";
}
}
return "N/A";