fix: catch access violations
This commit is contained in:
parent
063f3a56b4
commit
9f58e86071
|
@ -3,6 +3,7 @@ using System.Collections.Concurrent;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Runtime.ExceptionServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using Dalamud.Hooking;
|
using Dalamud.Hooking;
|
||||||
|
|
||||||
|
@ -117,6 +118,7 @@ namespace SoundFilter {
|
||||||
Marshal.FreeHGlobal(this.NoSoundPtr);
|
Marshal.FreeHGlobal(this.NoSoundPtr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HandleProcessCorruptedStateExceptions]
|
||||||
private void* PlaySpecificSoundDetour(long a1, int idx) {
|
private void* PlaySpecificSoundDetour(long a1, int idx) {
|
||||||
if (a1 == 0) {
|
if (a1 == 0) {
|
||||||
goto Original;
|
goto Original;
|
||||||
|
|
Loading…
Reference in New Issue