SHA256
Migrate to C#12
This commit is contained in:
24 files changed
+42
-42
No files matched your search
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using ADOFAIRenderer.Core;
|
||||
using ADOFAIRenderer.Util.Audio;
|
||||
using ADOFAIRenderer.Util.Audio.Clip;
|
||||
@@ -206,7 +207,7 @@ public static class AudioSourceIsPlayingPatch
|
||||
{
|
||||
/// <summary>When <see cref="EffectSource.TryGet"/> finds a mapped state, uses it and returns false (Unity is skipped); otherwise returns true.</summary>
|
||||
[HarmonyPrefix]
|
||||
// ReSharper disable once InconsistentNaming
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public static bool Prefix(AudioSource __instance, ref bool __result)
|
||||
{
|
||||
if (!EffectSource.TryGet(__instance, out var state, out var now)) return true;
|
||||
@@ -221,7 +222,7 @@ public static class AudioSourceTimeGetterPatch
|
||||
{
|
||||
/// <summary>When <see cref="EffectSource.TryGet"/> finds a mapped state, uses it and returns false (Unity is skipped); otherwise returns true.</summary>
|
||||
[HarmonyPrefix]
|
||||
// ReSharper disable once InconsistentNaming
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public static bool Prefix(AudioSource __instance, ref float __result)
|
||||
{
|
||||
if (!EffectSource.TryGet(__instance, out var state, out var now)) return true;
|
||||
@@ -257,7 +258,7 @@ public static class AudioSourceTimeSamplesGetterPatch
|
||||
{
|
||||
/// <summary>When <see cref="EffectSource.TryGet"/> finds a mapped state, uses it and returns false (Unity is skipped); otherwise returns true.</summary>
|
||||
[HarmonyPrefix]
|
||||
// ReSharper disable once InconsistentNaming
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public static bool Prefix(AudioSource __instance, ref int __result)
|
||||
{
|
||||
if (!EffectSource.TryGet(__instance, out var state, out var now)) return true;
|
||||
@@ -287,7 +288,7 @@ public static class AudioSourcePitchGetterPatch
|
||||
{
|
||||
/// <summary>When <see cref="EffectSource.TryGet"/> finds a mapped state, uses it and returns false (Unity is skipped); otherwise returns true.</summary>
|
||||
[HarmonyPrefix]
|
||||
// ReSharper disable once InconsistentNaming
|
||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||
public static bool Prefix(AudioSource __instance, ref float __result)
|
||||
{
|
||||
if (!EffectSource.TryGet(__instance, out var state, out _)) return true;
|
||||
|
||||
Reference in new issue
Block a user