fix: catch access violations

This commit is contained in:
Anna 2021-05-08 16:24:15 -04:00
parent 063f3a56b4
commit 9f58e86071
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.ExceptionServices;
using System.Runtime.InteropServices;
using Dalamud.Hooking;
@ -117,6 +118,7 @@ namespace SoundFilter {
Marshal.FreeHGlobal(this.NoSoundPtr);
}
[HandleProcessCorruptedStateExceptions]
private void* PlaySpecificSoundDetour(long a1, int idx) {
if (a1 == 0) {
goto Original;