mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +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.InterfaceManager = new InterfaceManager(this, this.SigScanner);
|
||||
this.InterfaceManager.OnDraw += BuildDalamudUi;
|
||||
this.InterfaceManager.Enable();
|
||||
try {
|
||||
this.InterfaceManager = new InterfaceManager(this, this.SigScanner);
|
||||
this.InterfaceManager.OnDraw += BuildDalamudUi;
|
||||
} catch (Exception e) {
|
||||
Log.Information(e, "Could not init interface.");
|
||||
}
|
||||
}
|
||||
|
||||
public void Start() {
|
||||
try {
|
||||
this.InterfaceManager?.Enable();
|
||||
} catch (Exception e) {
|
||||
Log.Information("Could not enable interface.");
|
||||
}
|
||||
|
||||
Framework.Enable();
|
||||
|
||||
this.BotManager.Start();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue