mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
Add DelayInitializeMs to DalamudStartInfo
This commit is contained in:
parent
79ddc5dd31
commit
6553507146
2 changed files with 11 additions and 0 deletions
|
|
@ -51,5 +51,10 @@ namespace Dalamud
|
||||||
/// Gets a value indicating whether or not market board information should be uploaded by default.
|
/// Gets a value indicating whether or not market board information should be uploaded by default.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool OptOutMbCollection { get; init; }
|
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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,12 @@ namespace Dalamud
|
||||||
|
|
||||||
try
|
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(new string('-', 80));
|
||||||
Log.Information("Initializing a session..");
|
Log.Information("Initializing a session..");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue