Merge pull request #11271 from peppy/dev-server

Prefer connecting to dev server when running in DEBUG
This commit is contained in:
Dean Herbert
2020-12-24 23:01:19 +09:00
committed by GitHub
23 changed files with 199 additions and 52 deletions

View File

@ -81,6 +81,13 @@ namespace osu.Game.Online.Spectator
/// </summary>
public event Action<int, SpectatorState> OnUserFinishedPlaying;
private readonly string endpoint;
public SpectatorStreamingClient(EndpointConfiguration endpoints)
{
endpoint = endpoints.SpectatorEndpointUrl;
}
[BackgroundDependencyLoader]
private void load()
{
@ -104,8 +111,6 @@ namespace osu.Game.Online.Spectator
}
}
private const string endpoint = "https://spectator.ppy.sh/spectator";
protected virtual async Task Connect()
{
if (connection != null)