mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 16:57:22 +01:00
add periodic file scanner, parallelize downloads, fix transient files being readded when not necessary, fix disposal of players on plugin shutdown
This commit is contained in:
parent
25e87e6ec2
commit
0d7e173a97
20 changed files with 641 additions and 525 deletions
|
|
@ -174,11 +174,16 @@ namespace MareSynchronos.Managers
|
|||
while (actionQueue.Count > 0 && totalSleepTime < 2000)
|
||||
{
|
||||
Logger.Verbose("Waiting for actionqueue to clear...");
|
||||
HandleActionQueue();
|
||||
System.Threading.Thread.Sleep(16);
|
||||
totalSleepTime += 16;
|
||||
}
|
||||
|
||||
Logger.Verbose("Action queue clear or not, disposing");
|
||||
if (totalSleepTime >= 2000)
|
||||
{
|
||||
Logger.Verbose("Action queue clear or not, disposing");
|
||||
}
|
||||
|
||||
_dalamudUtil.FrameworkUpdate -= HandleActionQueue;
|
||||
_dalamudUtil.ZoneSwitchEnd -= ClearActionQueue;
|
||||
actionQueue.Clear();
|
||||
|
|
@ -304,7 +309,7 @@ namespace MareSynchronos.Managers
|
|||
public string? PenumbraModDirectory()
|
||||
{
|
||||
if (!CheckPenumbraApi()) return null;
|
||||
return _penumbraResolveModDir!.InvokeFunc();
|
||||
return _penumbraResolveModDir!.InvokeFunc().ToLowerInvariant();
|
||||
}
|
||||
|
||||
public void PenumbraRedraw(IntPtr obj)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue