mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Add test for fastfail exception
This commit is contained in:
parent
813bb1d360
commit
dac14b9168
1 changed files with 15 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ using System.Globalization;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
using CheapLoc;
|
using CheapLoc;
|
||||||
|
|
@ -37,6 +38,8 @@ using Dalamud.Utility;
|
||||||
|
|
||||||
using FFXIVClientStructs.FFXIV.Client.System.Framework;
|
using FFXIVClientStructs.FFXIV.Client.System.Framework;
|
||||||
using FFXIVClientStructs.FFXIV.Client.UI;
|
using FFXIVClientStructs.FFXIV.Client.UI;
|
||||||
|
using FFXIVClientStructs.FFXIV.Component.GUI;
|
||||||
|
|
||||||
using ImGuiNET;
|
using ImGuiNET;
|
||||||
|
|
||||||
using ImPlotNET;
|
using ImPlotNET;
|
||||||
|
|
@ -830,6 +833,18 @@ internal class DalamudInterface : IInternalDisposableService
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ImGui.MenuItem("Cause CLR fastfail"))
|
||||||
|
{
|
||||||
|
unsafe void CauseFastFail()
|
||||||
|
{
|
||||||
|
// ReSharper disable once NotAccessedVariable
|
||||||
|
var texture = Unsafe.AsRef<AtkTexture>((void*)0x12345678);
|
||||||
|
texture.TextureType = TextureType.Crest;
|
||||||
|
}
|
||||||
|
|
||||||
|
Service<Game.Framework>.Get().RunOnFrameworkThread(CauseFastFail);
|
||||||
|
}
|
||||||
|
|
||||||
if (ImGui.MenuItem("Cause ImGui assert"))
|
if (ImGui.MenuItem("Cause ImGui assert"))
|
||||||
{
|
{
|
||||||
ImGui.PopStyleVar();
|
ImGui.PopStyleVar();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue