mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Added some other task handling for collection caches.
This commit is contained in:
parent
0243e7a633
commit
e98003eb09
11 changed files with 110 additions and 36 deletions
|
|
@ -52,10 +52,14 @@ public class Penumbra : IDalamudPlugin
|
|||
try
|
||||
{
|
||||
var startTimer = new StartTracker();
|
||||
using var timer = startTimer.Measure(StartTimeType.Total);
|
||||
using var timer = startTimer.Measure(StartTimeType.Total);
|
||||
_services = ServiceManager.CreateProvider(this, pluginInterface, Log, startTimer);
|
||||
ChatService = _services.GetRequiredService<ChatService>();
|
||||
_validityChecker = _services.GetRequiredService<ValidityChecker>();
|
||||
var startup = _services.GetRequiredService<DalamudServices>().GetDalamudConfig(DalamudServices.WaitingForPluginsOption, out bool s)
|
||||
? s.ToString()
|
||||
: "Unknown";
|
||||
Log.Information($"Loading Penumbra Version {_validityChecker.Version}, Commit #{_validityChecker.CommitHash} with Waiting For Plugins: {startup}...");
|
||||
_services.GetRequiredService<BackupService>(); // Initialize because not required anywhere else.
|
||||
_config = _services.GetRequiredService<Configuration>();
|
||||
_characterUtility = _services.GetRequiredService<CharacterUtility>();
|
||||
|
|
@ -114,7 +118,7 @@ public class Penumbra : IDalamudPlugin
|
|||
|
||||
private void SetupInterface()
|
||||
{
|
||||
Task.Run(() =>
|
||||
AsyncTask.Run(() =>
|
||||
{
|
||||
using var tInterface = _services.GetRequiredService<StartTracker>().Measure(StartTimeType.Interface);
|
||||
var system = _services.GetRequiredService<PenumbraWindowSystem>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue