mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-22 07:47:45 +01:00
Load services asynchronously whenever possible (#893)
This commit is contained in:
parent
fba8c7163c
commit
8e7f370ddd
66 changed files with 959 additions and 899 deletions
|
|
@ -17,6 +17,7 @@ namespace Dalamud.Game.Gui.Dtr
|
|||
/// </summary>
|
||||
[PluginInterface]
|
||||
[InterfaceVersion("1.0")]
|
||||
[ServiceManager.BlockingEarlyLoadedService]
|
||||
public sealed unsafe class DtrBar : IDisposable
|
||||
{
|
||||
private const uint BaseNodeId = 1000;
|
||||
|
|
@ -24,13 +25,10 @@ namespace Dalamud.Game.Gui.Dtr
|
|||
private List<DtrBarEntry> entries = new();
|
||||
private uint runningNodeIds = BaseNodeId;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DtrBar"/> class.
|
||||
/// </summary>
|
||||
internal DtrBar()
|
||||
[ServiceManager.ServiceConstructor]
|
||||
private DtrBar(DalamudConfiguration configuration)
|
||||
{
|
||||
Service<Framework>.Get().Update += this.Update;
|
||||
var configuration = Service<DalamudConfiguration>.Get();
|
||||
|
||||
configuration.DtrOrder ??= new List<string>();
|
||||
configuration.DtrIgnore ??= new List<string>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue