Merge pull request #27783 from 64ArthurAraujo/add-invalid-beatmap-hash-custom-message

Add custom message in the case of a `invalid beatmap_hash`
This commit is contained in:
Dean Herbert 2024-04-04 10:47:22 +08:00 committed by GitHub
commit 2e1d63a1c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -152,6 +152,10 @@ void handleTokenFailure(Exception exception, bool displayNotification = false)
Logger.Log($"Please ensure that you are using the latest version of the official game releases.\n\n{whatWillHappen}", level: LogLevel.Important);
break;
case @"invalid beatmap hash":
Logger.Log($"This beatmap does not match the online version. Please update or redownload it.\n\n{whatWillHappen}", level: LogLevel.Important);
break;
case @"expired token":
Logger.Log($"Your system clock is set incorrectly. Please check your system time, date and timezone.\n\n{whatWillHappen}", level: LogLevel.Important);
break;