Skip to content

Commit 0126f09

Browse files
committed
Add can_skip_build=1 to info queries for home screen.
So basically, opening the dropdown won't trigger an ACZ build for relevant servers.
1 parent 373bf9c commit 0126f09

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

SS14.Launcher/Models/ServerStatus/ServerStatusCache.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,9 @@ void IServerSource.UpdateInfoFor(ServerStatusData statusData)
213213
{
214214
UpdateInfoForCore(statusData, async cancel =>
215215
{
216-
var statusAddr = UriHelper.GetServerInfoAddress(statusData.Address);
217-
return await _http.GetFromJsonAsync<ServerInfo>(statusAddr, cancel);
216+
var uriBuilder = new UriBuilder(UriHelper.GetServerInfoAddress(statusData.Address));
217+
uriBuilder.Query = "?can_skip_build=1";
218+
return await _http.GetFromJsonAsync<ServerInfo>(uriBuilder.ToString(), cancel);
218219
});
219220
}
220221

0 commit comments

Comments
 (0)