goatcorp / Dalamud

FFXIV plugin framework and API
GNU Affero General Public License v3.0
1.18k stars 271 forks source link

Load dalamud.dll without a file lock / reinjection #408

Closed daemitus closed 1 week ago

daemitus commented 3 years ago

Can the injector load dalamud.dll, without causing a file lock, while not completely screwing Assembly.Location?

daemitus commented 3 years ago
daemitus commented 3 years ago

When re-injecting the same assembly: System.Exception: Service Dalamud.IoC.Internal.ServiceContainer was set twice

So we then need to zero out the IoC containers? This ultimately means that dalamud isnt unloading, the main thread is just terminating, but any statics are remaining.

tldr, dispose statics?