Add DelayInitializeMs to DalamudStartInfo

This commit is contained in:
Soreepeong 2021-11-12 22:31:43 +09:00
parent 79ddc5dd31
commit 6553507146
2 changed files with 11 additions and 0 deletions

View file

@ -51,5 +51,10 @@ namespace Dalamud
/// Gets a value indicating whether or not market board information should be uploaded by default.
/// </summary>
public bool OptOutMbCollection { get; init; }
/// <summary>
/// Gets a value that specifies how much to wait before a new Dalamud session.
/// </summary>
public int DelayInitializeMs { get; init; }
}
}

View file

@ -79,6 +79,12 @@ namespace Dalamud
try
{
if (info.DelayInitializeMs > 0)
{
Log.Information(string.Format("Waiting for {0}ms before starting a session.", info.DelayInitializeMs));
Thread.Sleep(info.DelayInitializeMs);
}
Log.Information(new string('-', 80));
Log.Information("Initializing a session..");