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:
parent
60be1bedc9
commit
e89583d732
@ -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>();
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user