mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:17:51 +08:00
Merge pull request #12014 from peppy/fix-eap7-inspections
Fix a couple of new inspections introduced in Rider EAPs
This commit is contained in:
commit
712e7bc7bf
@ -17,12 +17,12 @@ namespace osu.Game.Beatmaps
|
|||||||
public abstract class BeatmapConverter<T> : IBeatmapConverter
|
public abstract class BeatmapConverter<T> : IBeatmapConverter
|
||||||
where T : HitObject
|
where T : HitObject
|
||||||
{
|
{
|
||||||
private event Action<HitObject, IEnumerable<HitObject>> ObjectConverted;
|
private event Action<HitObject, IEnumerable<HitObject>> objectConverted;
|
||||||
|
|
||||||
event Action<HitObject, IEnumerable<HitObject>> IBeatmapConverter.ObjectConverted
|
event Action<HitObject, IEnumerable<HitObject>> IBeatmapConverter.ObjectConverted
|
||||||
{
|
{
|
||||||
add => ObjectConverted += value;
|
add => objectConverted += value;
|
||||||
remove => ObjectConverted -= value;
|
remove => objectConverted -= value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IBeatmap Beatmap { get; }
|
public IBeatmap Beatmap { get; }
|
||||||
@ -92,10 +92,10 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
var converted = ConvertHitObject(obj, beatmap, cancellationToken);
|
var converted = ConvertHitObject(obj, beatmap, cancellationToken);
|
||||||
|
|
||||||
if (ObjectConverted != null)
|
if (objectConverted != null)
|
||||||
{
|
{
|
||||||
converted = converted.ToList();
|
converted = converted.ToList();
|
||||||
ObjectConverted.Invoke(obj, converted);
|
objectConverted.Invoke(obj, converted);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var c in converted)
|
foreach (var c in converted)
|
||||||
|
@ -471,9 +471,6 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
|
|
||||||
private string toLegacyCustomSampleBank(HitSampleInfo hitSampleInfo)
|
private string toLegacyCustomSampleBank(HitSampleInfo hitSampleInfo)
|
||||||
{
|
{
|
||||||
if (hitSampleInfo == null)
|
|
||||||
return "0";
|
|
||||||
|
|
||||||
if (hitSampleInfo is ConvertHitObjectParser.LegacyHitSampleInfo legacy)
|
if (hitSampleInfo is ConvertHitObjectParser.LegacyHitSampleInfo legacy)
|
||||||
return legacy.CustomSampleBank.ToString(CultureInfo.InvariantCulture);
|
return legacy.CustomSampleBank.ToString(CultureInfo.InvariantCulture);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user