Accommodate nested AddonLifecycle event calls (#1698)

* Accommodate nested AddonLifecycle event calls

The game is free to call event handlers of another addon from one addon,
but the previous code was written under the assumption that only one
function may be called at a time. This changes the recycled addon args
into pooled args.

* Always clear addon name cache
This commit is contained in:
srkizer 2024-03-08 10:47:11 +09:00 committed by GitHub
parent 4c0f7b7eba
commit 88a8d45798
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 165 additions and 69 deletions

View file

@ -18,7 +18,7 @@ namespace Dalamud.Game.Addon.Events;
/// Service provider for addon event management.
/// </summary>
[InterfaceVersion("1.0")]
[ServiceManager.BlockingEarlyLoadedService]
[ServiceManager.EarlyLoadedService]
internal unsafe class AddonEventManager : IDisposable, IServiceType
{
/// <summary>