mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 20:33:40 +01:00
Print dotnet stack trace on veh error msgbox, and use precompiled headers.
This commit is contained in:
parent
2c99778eeb
commit
e64cc7e687
16 changed files with 298 additions and 170 deletions
|
|
@ -326,12 +326,14 @@ namespace Dalamud.Utility
|
|||
/// </summary>
|
||||
/// <param name="message">MessageBox body.</param>
|
||||
/// <param name="caption">MessageBox caption (title).</param>
|
||||
public static void Fatal(string message, string caption)
|
||||
/// <param name="exit">Specify whether to exit immediately.</param>
|
||||
public static void Fatal(string message, string caption, bool exit = true)
|
||||
{
|
||||
var flags = NativeFunctions.MessageBoxType.Ok | NativeFunctions.MessageBoxType.IconError;
|
||||
var flags = NativeFunctions.MessageBoxType.Ok | NativeFunctions.MessageBoxType.IconError | NativeFunctions.MessageBoxType.Topmost;
|
||||
_ = NativeFunctions.MessageBoxW(Process.GetCurrentProcess().MainWindowHandle, message, caption, flags);
|
||||
|
||||
Environment.Exit(-1);
|
||||
if (exit)
|
||||
Environment.Exit(-1);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue