1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 14:12:56 +08:00

Prefer connecting to dev server when running in DEBUG

This commit is contained in:
Dean Herbert 2020-12-24 01:33:19 +09:00
parent 60be1bedc9
commit e89583d732
3 changed files with 15 additions and 1 deletions

View File

@ -26,9 +26,15 @@ namespace osu.Game.Online.API
private readonly OAuth authentication;
#if DEBUG
public string Endpoint => @"https://dev.ppy.sh";
private const string client_secret = @"3LP2mhUrV89xxzD1YKNndXHEhWWCRLPNKioZ9ymT";
#else
public string Endpoint => @"https://osu.ppy.sh";
private const string client_id = @"5";
private const string client_secret = @"FGc9GAtyHzeQDshWP5Ah7dega8hJACAJpQtw6OXk";
#endif
private const string client_id = @"5";
private readonly Queue<APIRequest> queue = new Queue<APIRequest>();

View File

@ -19,7 +19,11 @@ namespace osu.Game.Online.RealtimeMultiplayer
{
public class RealtimeMultiplayerClient : StatefulMultiplayerClient
{
#if DEBUG
private const string endpoint = "https://dev.ppy.sh/multiplayer";
#else
private const string endpoint = "https://spectator.ppy.sh/multiplayer";
#endif
public override IBindable<bool> IsConnected => isConnected;

View File

@ -104,7 +104,11 @@ namespace osu.Game.Online.Spectator
}
}
#if DEBUG
private const string endpoint = "https://dev.ppy.sh/spectator";
#else
private const string endpoint = "https://spectator.ppy.sh/spectator";
#endif
protected virtual async Task Connect()
{