mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 13:23:05 +08:00
Catch and warn about osu!stable lobbies
This commit is contained in:
parent
9871300317
commit
98ca021e66
@ -191,6 +191,15 @@ namespace osu.Desktop
|
|||||||
game.Window?.Raise();
|
game.Window?.Raise();
|
||||||
Logger.Log($"Received room secret from Discord RPC Client: {args.Secret}", LoggingTarget.Network, LogLevel.Debug);
|
Logger.Log($"Received room secret from Discord RPC Client: {args.Secret}", LoggingTarget.Network, LogLevel.Debug);
|
||||||
|
|
||||||
|
// Stable and Lazer share the same Discord client ID, meaning they can accept join requests from each other.
|
||||||
|
// Since they aren't compatible in multi, see if stable's format is being used and log to avoid confusion.
|
||||||
|
// https://discord.com/channels/188630481301012481/188630652340404224/1214697229063946291
|
||||||
|
if (args.Secret[0] != '{')
|
||||||
|
{
|
||||||
|
Logger.Log("osu!stable rooms are not compatible with lazer.", LoggingTarget.Network, LogLevel.Important);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!tryParseRoomSecret(args.Secret, out long roomId, out string? password))
|
if (!tryParseRoomSecret(args.Secret, out long roomId, out string? password))
|
||||||
{
|
{
|
||||||
Logger.Log("Could not join multiplayer room.", LoggingTarget.Network, LogLevel.Important);
|
Logger.Log("Could not join multiplayer room.", LoggingTarget.Network, LogLevel.Important);
|
||||||
|
Loading…
Reference in New Issue
Block a user