diff --git a/HitsoundTweaks/HarmonyPatches/AudioTimeSyncController_dspTimeOffset_Patch.cs b/HitsoundTweaks/HarmonyPatches/AudioTimeSyncController_dspTimeOffset_Patch.cs index 703fd0a..6344c37 100644 --- a/HitsoundTweaks/HarmonyPatches/AudioTimeSyncController_dspTimeOffset_Patch.cs +++ b/HitsoundTweaks/HarmonyPatches/AudioTimeSyncController_dspTimeOffset_Patch.cs @@ -13,7 +13,7 @@ namespace HitsoundTweaks.HarmonyPatches * To fix this, we patch out the _dspTimeOffset update, and reimplement it to be a cumulative average of the target offset calculated each frame * This reliably and consistently gets within a handful of audio samples after a few seconds, which is for all intents and purposes good enough */ - [HarmonyPatch(typeof(AudioTimeSyncController), nameof(AudioTimeSyncController.Update))] + [HarmonyPatch(typeof(AudioTimeSyncController), "Update")] internal class AudioTimeSyncController_dspTimeOffset_Patch { static IEnumerable Transpiler(IEnumerable instructions) diff --git a/HitsoundTweaks/HarmonyPatches/Chain_Element_Hitsound_Patch.cs b/HitsoundTweaks/HarmonyPatches/Chain_Element_Hitsound_Patch.cs index 34029d7..eb46eb5 100644 --- a/HitsoundTweaks/HarmonyPatches/Chain_Element_Hitsound_Patch.cs +++ b/HitsoundTweaks/HarmonyPatches/Chain_Element_Hitsound_Patch.cs @@ -7,7 +7,7 @@ namespace HitsoundTweaks.HarmonyPatches * By default, hitsounds are not played for chain elements * These patches enable them and apply a volume multiplier based on config values */ - [HarmonyPatch(typeof(NoteCutSoundEffectManager), nameof(NoteCutSoundEffectManager.IsSupportedNote))] + [HarmonyPatch(typeof(NoteCutSoundEffectManager), "IsSupportedNote")] internal class NoteCutSoundEffectManager_Chain_Element_Hitsound_Patch { static void Postfix(NoteData noteData, ref bool __result) diff --git a/HitsoundTweaks/HarmonyPatches/Hitsound_Reliability_Patches.cs b/HitsoundTweaks/HarmonyPatches/Hitsound_Reliability_Patches.cs index 08d8309..34a01f8 100644 --- a/HitsoundTweaks/HarmonyPatches/Hitsound_Reliability_Patches.cs +++ b/HitsoundTweaks/HarmonyPatches/Hitsound_Reliability_Patches.cs @@ -12,7 +12,7 @@ namespace HitsoundTweaks.HarmonyPatches * 2. AudioSource priorities are not managed very smoothly, which gives Unity little time to sort things out, leading to hitsounds cutting out, not playing, etc. * This reworks priority assignment to smoothly scale priorities based on time relative to the note it's meant for, which greatly improves reliability */ - [HarmonyPatch(typeof(NoteCutSoundEffect), nameof(NoteCutSoundEffect.LateUpdate))] + [HarmonyPatch(typeof(NoteCutSoundEffect), "LateUpdate")] internal class Hitsound_Reliability_Patches { static IEnumerable Transpiler(IEnumerable instructions) diff --git a/HitsoundTweaks/HarmonyPatches/NoteCutSoundEffectManager_Max_Active_SoundEffects_Patch.cs b/HitsoundTweaks/HarmonyPatches/NoteCutSoundEffectManager_Max_Active_SoundEffects_Patch.cs index c4fd693..a67507b 100644 --- a/HitsoundTweaks/HarmonyPatches/NoteCutSoundEffectManager_Max_Active_SoundEffects_Patch.cs +++ b/HitsoundTweaks/HarmonyPatches/NoteCutSoundEffectManager_Max_Active_SoundEffects_Patch.cs @@ -12,7 +12,7 @@ namespace HitsoundTweaks.HarmonyPatches * This is likely intentional to keep hitsounds from cutting out entirely with the limited number of virtual voices available by default * When the number of virtual voices is raised, it makes more sense to re-enable this check by setting the limit just below the number of virtual voices */ - [HarmonyPatch(typeof(NoteCutSoundEffectManager), nameof(NoteCutSoundEffectManager.HandleNoteWasSpawned))] + [HarmonyPatch(typeof(NoteCutSoundEffectManager), "HandleNoteWasSpawned")] internal class NoteCutSoundEffectManager_Max_Active_SoundEffects_Patch { static IEnumerable Transpiler(IEnumerable instructions) diff --git a/HitsoundTweaks/HarmonyPatches/NoteCutSoundEffectManager_Proximity_Check_Patch.cs b/HitsoundTweaks/HarmonyPatches/NoteCutSoundEffectManager_Proximity_Check_Patch.cs index 9aac184..a9d7cb9 100644 --- a/HitsoundTweaks/HarmonyPatches/NoteCutSoundEffectManager_Proximity_Check_Patch.cs +++ b/HitsoundTweaks/HarmonyPatches/NoteCutSoundEffectManager_Proximity_Check_Patch.cs @@ -10,7 +10,7 @@ namespace HitsoundTweaks.HarmonyPatches * Chain elements and heads can be spawned out of order, which can cause hitsounds to be skipped if chain element hitsounds are enabled * By making the time proximity check use an absolute value, we mitigate this issue */ - [HarmonyPatch(typeof(NoteCutSoundEffectManager), nameof(NoteCutSoundEffectManager.HandleNoteWasSpawned))] + [HarmonyPatch(typeof(NoteCutSoundEffectManager), "HandleNoteWasSpawned")] internal class NoteCutSoundEffectManager_Proximity_Check_Patch { static IEnumerable Transpiler(IEnumerable instructions) diff --git a/HitsoundTweaks/HarmonyPatches/NoteCutSoundEffect_Transform_Position_Patch.cs b/HitsoundTweaks/HarmonyPatches/NoteCutSoundEffect_Transform_Position_Patch.cs index 974270b..298793a 100644 --- a/HitsoundTweaks/HarmonyPatches/NoteCutSoundEffect_Transform_Position_Patch.cs +++ b/HitsoundTweaks/HarmonyPatches/NoteCutSoundEffect_Transform_Position_Patch.cs @@ -56,7 +56,7 @@ static void Postfix(NoteCutSoundEffect __instance, AudioSource ____audioSource, } } - [HarmonyPatch(typeof(NoteCutSoundEffect), nameof(NoteCutSoundEffect.LateUpdate))] + [HarmonyPatch(typeof(NoteCutSoundEffect), "LateUpdate")] internal class NoteCutSoundEffect_Transform_Position_LateUpdate_Patch { static IEnumerable Transpiler(IEnumerable instructions) diff --git a/HitsoundTweaks/Properties/AssemblyInfo.cs b/HitsoundTweaks/Properties/AssemblyInfo.cs index 90c3993..4bb797a 100644 --- a/HitsoundTweaks/Properties/AssemblyInfo.cs +++ b/HitsoundTweaks/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.1.2")] -[assembly: AssemblyFileVersion("1.1.2")] +[assembly: AssemblyVersion("1.1.3")] +[assembly: AssemblyFileVersion("1.1.3")] diff --git a/HitsoundTweaks/manifest.json b/HitsoundTweaks/manifest.json index f67cb6d..580d6b4 100644 --- a/HitsoundTweaks/manifest.json +++ b/HitsoundTweaks/manifest.json @@ -3,11 +3,11 @@ "id": "HitsoundTweaks", "name": "HitsoundTweaks", "author": "GalaxyMaster", - "version": "1.1.2", + "version": "1.1.3", "description": "Adds more configurability to hitsounds, and fixes several base game bugs to make them more reliable and consistent.", - "gameVersion": "1.21.0", + "gameVersion": "1.31.0", "dependsOn": { - "BSIPA": "^4.2.0", - "BeatSaberMarkupLanguage": "^1.6.6" + "BSIPA": "^4.3.0", + "BeatSaberMarkupLanguage": "^1.7.6" } } \ No newline at end of file