mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
flush log on Util.Fatal()
This commit is contained in:
parent
39b6c4b701
commit
12efd9e679
1 changed files with 3 additions and 0 deletions
|
|
@ -344,8 +344,11 @@ public static class Util
|
||||||
_ = NativeFunctions.MessageBoxW(Process.GetCurrentProcess().MainWindowHandle, message, caption, flags);
|
_ = NativeFunctions.MessageBoxW(Process.GetCurrentProcess().MainWindowHandle, message, caption, flags);
|
||||||
|
|
||||||
if (exit)
|
if (exit)
|
||||||
|
{
|
||||||
|
Log.CloseAndFlush();
|
||||||
Environment.Exit(-1);
|
Environment.Exit(-1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Transform byte count to human readable format.
|
/// Transform byte count to human readable format.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue