mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 16:12:54 +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
|
// Check if the beatmap can be converted
|
||||||
if (!converter.CanConvert(beatmap.Beatmap))
|
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
|
// Convert the beatmap
|
||||||
Beatmap = converter.Convert(beatmap.Beatmap);
|
Beatmap = converter.Convert(beatmap.Beatmap);
|
||||||
@ -279,9 +279,9 @@ namespace osu.Game.Rulesets.UI
|
|||||||
protected abstract Playfield<TObject, TJudgement> CreatePlayfield();
|
protected abstract Playfield<TObject, TJudgement> CreatePlayfield();
|
||||||
}
|
}
|
||||||
|
|
||||||
public class BeatmapInvalidForModeException : Exception
|
public class BeatmapInvalidForRulesetException : Exception
|
||||||
{
|
{
|
||||||
public BeatmapInvalidForModeException(string text)
|
public BeatmapInvalidForRulesetException(string text)
|
||||||
: base(text)
|
: base(text)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
HitRenderer = rulesetInstance.CreateHitRendererWith(Beatmap);
|
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
|
// 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.
|
// let's try again forcing the beatmap's ruleset.
|
||||||
|
Loading…
Reference in New Issue
Block a user