mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
fix: handle interface hooking errors
This commit is contained in:
parent
56ce07be74
commit
02a9c64a78
1 changed files with 12 additions and 3 deletions
|
|
@ -91,12 +91,21 @@ namespace Dalamud {
|
||||||
|
|
||||||
this.WinSock2 = new WinSockHandlers();
|
this.WinSock2 = new WinSockHandlers();
|
||||||
|
|
||||||
this.InterfaceManager = new InterfaceManager(this, this.SigScanner);
|
try {
|
||||||
this.InterfaceManager.OnDraw += BuildDalamudUi;
|
this.InterfaceManager = new InterfaceManager(this, this.SigScanner);
|
||||||
this.InterfaceManager.Enable();
|
this.InterfaceManager.OnDraw += BuildDalamudUi;
|
||||||
|
} catch (Exception e) {
|
||||||
|
Log.Information(e, "Could not init interface.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Start() {
|
public void Start() {
|
||||||
|
try {
|
||||||
|
this.InterfaceManager?.Enable();
|
||||||
|
} catch (Exception e) {
|
||||||
|
Log.Information("Could not enable interface.");
|
||||||
|
}
|
||||||
|
|
||||||
Framework.Enable();
|
Framework.Enable();
|
||||||
|
|
||||||
this.BotManager.Start();
|
this.BotManager.Start();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue