mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 18:23:04 +08:00
Merge pull request #654 from peppy/score-statistics
Update exception name.
This commit is contained in:
commit
7dc8404cf6
@ -131,7 +131,7 @@ namespace osu.Game.Rulesets.UI
|
||||
|
||||
// Check if the beatmap can be converted
|
||||
if (!converter.CanConvert(beatmap.Beatmap))
|
||||
throw new BeatmapInvalidForModeException($"{nameof(Beatmap)} can't be converted for the current ruleset.");
|
||||
throw new BeatmapInvalidForRulesetException($"{nameof(Beatmap)} can't be converted for the current ruleset.");
|
||||
|
||||
// Convert the beatmap
|
||||
Beatmap = converter.Convert(beatmap.Beatmap);
|
||||
@ -279,9 +279,9 @@ namespace osu.Game.Rulesets.UI
|
||||
protected abstract Playfield<TObject, TJudgement> CreatePlayfield();
|
||||
}
|
||||
|
||||
public class BeatmapInvalidForModeException : Exception
|
||||
public class BeatmapInvalidForRulesetException : Exception
|
||||
{
|
||||
public BeatmapInvalidForModeException(string text)
|
||||
public BeatmapInvalidForRulesetException(string text)
|
||||
: base(text)
|
||||
{
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
HitRenderer = rulesetInstance.CreateHitRendererWith(Beatmap);
|
||||
}
|
||||
catch (BeatmapInvalidForModeException)
|
||||
catch (BeatmapInvalidForRulesetException)
|
||||
{
|
||||
// we may fail to create a HitRenderer if the beatmap cannot be loaded with the user's preferred ruleset
|
||||
// let's try again forcing the beatmap's ruleset.
|
||||
|
Loading…
Reference in New Issue
Block a user