mirror of
https://github.com/Caraxi/mare.client.git
synced 2026-02-15 19:07:41 +01:00
fix some shit, add triangle count
This commit is contained in:
parent
f62e8675e7
commit
1d99102c73
22 changed files with 196 additions and 46 deletions
|
|
@ -73,6 +73,7 @@ public class MarePlugin : MediatorSubscriberBase, IHostedService
|
|||
private readonly ServerConfigurationManager _serverConfigurationManager;
|
||||
private readonly IServiceScopeFactory _serviceScopeFactory;
|
||||
private IServiceScope? _runtimeServiceScope;
|
||||
private Task? _launchTask = null;
|
||||
|
||||
public MarePlugin(ILogger<MarePlugin> logger, MareConfigService mareConfigService,
|
||||
ServerConfigurationManager serverConfigurationManager,
|
||||
|
|
@ -92,7 +93,7 @@ public class MarePlugin : MediatorSubscriberBase, IHostedService
|
|||
Mediator.Publish(new EventMessage(new Services.Events.Event(nameof(MarePlugin), Services.Events.EventSeverity.Informational,
|
||||
$"Starting Mare Synchronos {version.Major}.{version.Minor}.{version.Build}")));
|
||||
|
||||
Mediator.Subscribe<SwitchToMainUiMessage>(this, (msg) => _ = Task.Run(WaitForPlayerAndLaunchCharacterManager));
|
||||
Mediator.Subscribe<SwitchToMainUiMessage>(this, (msg) => { if (_launchTask == null || _launchTask.IsCompleted) _launchTask = Task.Run(WaitForPlayerAndLaunchCharacterManager); });
|
||||
Mediator.Subscribe<DalamudLoginMessage>(this, (_) => DalamudUtilOnLogIn());
|
||||
Mediator.Subscribe<DalamudLogoutMessage>(this, (_) => DalamudUtilOnLogOut());
|
||||
|
||||
|
|
@ -115,8 +116,7 @@ public class MarePlugin : MediatorSubscriberBase, IHostedService
|
|||
private void DalamudUtilOnLogIn()
|
||||
{
|
||||
Logger?.LogDebug("Client login");
|
||||
|
||||
_ = Task.Run(WaitForPlayerAndLaunchCharacterManager);
|
||||
if (_launchTask == null || _launchTask.IsCompleted) _launchTask = Task.Run(WaitForPlayerAndLaunchCharacterManager);
|
||||
}
|
||||
|
||||
private void DalamudUtilOnLogOut()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue