fix: catch exceptions in hook
This commit is contained in:
parent
54297dc68f
commit
33c7342fd8
@ -2,6 +2,7 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using Dalamud.Hooking;
|
using Dalamud.Hooking;
|
||||||
|
using Dalamud.Plugin;
|
||||||
|
|
||||||
namespace Tourist {
|
namespace Tourist {
|
||||||
public class GameFunctions : IDisposable {
|
public class GameFunctions : IDisposable {
|
||||||
@ -46,7 +47,11 @@ namespace Tourist {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private IntPtr OnVistaUnlock(ushort index, int a2, int a3) {
|
private IntPtr OnVistaUnlock(ushort index, int a2, int a3) {
|
||||||
|
try {
|
||||||
this.Plugin.Markers.RemoveVfx(index);
|
this.Plugin.Markers.RemoveVfx(index);
|
||||||
|
} catch (Exception ex) {
|
||||||
|
PluginLog.LogError(ex, "Exception in vista unlock");
|
||||||
|
}
|
||||||
|
|
||||||
return this.VistaUnlockedHook.Original(index, a2, a3);
|
return this.VistaUnlockedHook.Original(index, a2, a3);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user