Skip to content

Commit

Permalink
Updated Biohazrd.
Browse files Browse the repository at this point in the history
  • Loading branch information
PathogenDavid committed Nov 27, 2020
1 parent aaabb2b commit a921b21
Show file tree
Hide file tree
Showing 26 changed files with 296 additions and 84 deletions.
3 changes: 2 additions & 1 deletion InfectedImGui.Generator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
TranslatedLibrary library = libraryBuilder.Create();

// Start output session
using OutputSession outputSession = new OutputSession()
using OutputSession outputSession = new()
{
AutoRenameConflictingFiles = true,
BaseOutputDirectory = outputDirectoryPath
Expand Down Expand Up @@ -96,6 +96,7 @@
library = new LiftAnonymousUnionFieldsTransformation().Transform(library);
library = new CSharpBuiltinTypeTransformation().Transform(library);
library = new KludgeUnknownClangTypesIntoBuiltinTypesTransformation(emitErrorOnFail: true).Transform(library);
library = new WrapNonBlittableTypesWhereNecessaryTransformation().Transform(library);
library = new DeduplicateNamesTransformation().Transform(library);
library = new MoveLooseDeclarationsIntoTypesTransformation().Transform(library);

Expand Down
10 changes: 5 additions & 5 deletions InfectedImGui/#Generated/Diagnostics.log
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,15 @@ Warning: Non-constant default parameter values are not supported.
--------------- TranslatedParameter size ---------------
Warning: Non-constant default parameter values are not supported.
--------------- TranslatedParameter <>UnnamedTranslatedParameter_0 ---------------
Warning: Renamed duplicate declaration '<>UnnamedTranslatedParameter' -> '<>UnnamedTranslatedParameter_0'
Warning: Renamed duplicate Biohazrd.TranslatedParameter declaration '<>UnnamedTranslatedParameter' -> '<>UnnamedTranslatedParameter_0'
--------------- TranslatedParameter <>UnnamedTranslatedParameter_1 ---------------
Warning: Renamed duplicate declaration '<>UnnamedTranslatedParameter' -> '<>UnnamedTranslatedParameter_1'
Warning: Renamed duplicate Biohazrd.TranslatedParameter declaration '<>UnnamedTranslatedParameter' -> '<>UnnamedTranslatedParameter_1'
--------------- TranslatedParameter <>UnnamedTranslatedParameter_0 ---------------
Warning: Renamed duplicate declaration '<>UnnamedTranslatedParameter' -> '<>UnnamedTranslatedParameter_0'
Warning: Renamed duplicate Biohazrd.TranslatedParameter declaration '<>UnnamedTranslatedParameter' -> '<>UnnamedTranslatedParameter_0'
--------------- TranslatedParameter <>UnnamedTranslatedParameter_1 ---------------
Warning: Renamed duplicate declaration '<>UnnamedTranslatedParameter' -> '<>UnnamedTranslatedParameter_1'
Warning: Renamed duplicate Biohazrd.TranslatedParameter declaration '<>UnnamedTranslatedParameter' -> '<>UnnamedTranslatedParameter_1'
--------------- TranslatedParameter <>UnnamedTranslatedParameter_2 ---------------
Warning: Renamed duplicate declaration '<>UnnamedTranslatedParameter' -> '<>UnnamedTranslatedParameter_2'
Warning: Renamed duplicate Biohazrd.TranslatedParameter declaration '<>UnnamedTranslatedParameter' -> '<>UnnamedTranslatedParameter_2'
==============================================================================
Generation Diagnostics
==============================================================================
Expand Down
2 changes: 1 addition & 1 deletion InfectedImGui/#Generated/ImDrawData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[StructLayout(LayoutKind.Explicit, Size = 64)]
public unsafe partial struct ImDrawData
{
[FieldOffset(0)] public bool Valid;
[FieldOffset(0)] [MarshalAs(UnmanagedType.I1)] public bool Valid;

[FieldOffset(8)] public ImDrawList** CmdLists;

Expand Down
6 changes: 3 additions & 3 deletions InfectedImGui/#Generated/ImDrawList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public unsafe void Destructor()
}

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?PushClipRect@ImDrawList@@QEAAXUImVec2@@0_N@Z", ExactSpelling = true)]
private static extern void PushClipRect_PInvoke(ImDrawList* @this, ImVec2 clip_rect_min, ImVec2 clip_rect_max, bool intersect_with_current_clip_rect);
private static extern void PushClipRect_PInvoke(ImDrawList* @this, ImVec2 clip_rect_min, ImVec2 clip_rect_max, [MarshalAs(UnmanagedType.I1)] bool intersect_with_current_clip_rect);

public unsafe void PushClipRect(ImVec2 clip_rect_min, ImVec2 clip_rect_max, bool intersect_with_current_clip_rect = false)
{
Expand Down Expand Up @@ -240,7 +240,7 @@ public unsafe void AddText(ImFont* font, float font_size, ImVec2* pos, uint col,
}

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?AddPolyline@ImDrawList@@QEAAXPEBUImVec2@@HI_NM@Z", ExactSpelling = true)]
private static extern void AddPolyline_PInvoke(ImDrawList* @this, ImVec2* points, int num_points, uint col, bool closed, float thickness);
private static extern void AddPolyline_PInvoke(ImDrawList* @this, ImVec2* points, int num_points, uint col, [MarshalAs(UnmanagedType.I1)] bool closed, float thickness);

public unsafe void AddPolyline(ImVec2* points, int num_points, uint col, bool closed, float thickness)
{
Expand Down Expand Up @@ -330,7 +330,7 @@ public unsafe void PathFillConvex(uint col)
}

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?PathStroke@ImDrawList@@QEAAXI_NM@Z", ExactSpelling = true)]
private static extern void PathStroke_PInvoke(ImDrawList* @this, uint col, bool closed, float thickness);
private static extern void PathStroke_PInvoke(ImDrawList* @this, uint col, [MarshalAs(UnmanagedType.I1)] bool closed, float thickness);

public unsafe void PathStroke(uint col, bool closed, float thickness = 1f)
{
Expand Down
10 changes: 6 additions & 4 deletions InfectedImGui/#Generated/ImFont.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public unsafe partial struct ImFont

[FieldOffset(84)] public ushort EllipsisChar;

[FieldOffset(86)] public bool DirtyLookupTables;
[FieldOffset(86)] [MarshalAs(UnmanagedType.I1)] public bool DirtyLookupTables;

[FieldOffset(88)] public float Scale;

Expand Down Expand Up @@ -84,6 +84,7 @@ public unsafe float GetCharAdvance(ushort c)
}

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?IsLoaded@ImFont@@QEBA_NXZ", ExactSpelling = true)]
[return: MarshalAs(UnmanagedType.I1)]
private static extern bool IsLoaded_PInvoke(ImFont* @this);

public unsafe bool IsLoaded()
Expand Down Expand Up @@ -129,7 +130,7 @@ public unsafe void RenderChar(ImDrawList* draw_list, float size, ImVec2 pos, uin
}

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?RenderText@ImFont@@QEBAXPEAUImDrawList@@MUImVec2@@IAEBUImVec4@@PEBD3M_N@Z", ExactSpelling = true)]
private static extern void RenderText_PInvoke(ImFont* @this, ImDrawList* draw_list, float size, ImVec2 pos, uint col, ImVec4* clip_rect, byte* text_begin, byte* text_end, float wrap_width, bool cpu_fine_clip);
private static extern void RenderText_PInvoke(ImFont* @this, ImDrawList* draw_list, float size, ImVec2 pos, uint col, ImVec4* clip_rect, byte* text_begin, byte* text_end, float wrap_width, [MarshalAs(UnmanagedType.I1)] bool cpu_fine_clip);

public unsafe void RenderText(ImDrawList* draw_list, float size, ImVec2 pos, uint col, ImVec4* clip_rect, byte* text_begin, byte* text_end, float wrap_width = 0f, bool cpu_fine_clip = false)
{
Expand Down Expand Up @@ -174,7 +175,7 @@ public unsafe void AddGlyph(ImFontConfig* src_cfg, ushort c, float x0, float y0,
}

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?AddRemapChar@ImFont@@QEAAXGG_N@Z", ExactSpelling = true)]
private static extern void AddRemapChar_PInvoke(ImFont* @this, ushort dst, ushort src, bool overwrite_dst);
private static extern void AddRemapChar_PInvoke(ImFont* @this, ushort dst, ushort src, [MarshalAs(UnmanagedType.I1)] bool overwrite_dst);

public unsafe void AddRemapChar(ushort dst, ushort src, bool overwrite_dst = true)
{
Expand All @@ -183,7 +184,7 @@ public unsafe void AddRemapChar(ushort dst, ushort src, bool overwrite_dst = tru
}

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?SetGlyphVisible@ImFont@@QEAAXG_N@Z", ExactSpelling = true)]
private static extern void SetGlyphVisible_PInvoke(ImFont* @this, ushort c, bool visible);
private static extern void SetGlyphVisible_PInvoke(ImFont* @this, ushort c, [MarshalAs(UnmanagedType.I1)] bool visible);

public unsafe void SetGlyphVisible(ushort c, bool visible)
{
Expand All @@ -201,6 +202,7 @@ public unsafe void SetFallbackChar(ushort c)
}

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?IsGlyphRangeUnused@ImFont@@QEAA_NII@Z", ExactSpelling = true)]
[return: MarshalAs(UnmanagedType.I1)]
private static extern bool IsGlyphRangeUnused_PInvoke(ImFont* @this, uint c_begin, uint c_last);

public unsafe bool IsGlyphRangeUnused(uint c_begin, uint c_last)
Expand Down
5 changes: 4 additions & 1 deletion InfectedImGui/#Generated/ImFontAtlas.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public unsafe void Clear()
}

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?Build@ImFontAtlas@@QEAA_NXZ", ExactSpelling = true)]
[return: MarshalAs(UnmanagedType.I1)]
private static extern bool Build_PInvoke(ImFontAtlas* @this);

public unsafe bool Build()
Expand Down Expand Up @@ -140,6 +141,7 @@ public unsafe void GetTexDataAsRGBA32(byte** out_pixels, int* out_width, int* ou
}

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?IsBuilt@ImFontAtlas@@QEBA_NXZ", ExactSpelling = true)]
[return: MarshalAs(UnmanagedType.I1)]
private static extern bool IsBuilt_PInvoke(ImFontAtlas* @this);

public unsafe bool IsBuilt()
Expand Down Expand Up @@ -266,6 +268,7 @@ public unsafe void CalcCustomRectUV(ImFontAtlasCustomRect* rect, ImVec2* out_uv_
}

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?GetMouseCursorTexData@ImFontAtlas@@QEAA_NHPEAUImVec2@@0QEAU2@1@Z", ExactSpelling = true)]
[return: MarshalAs(UnmanagedType.I1)]
private static extern bool GetMouseCursorTexData_PInvoke(ImFontAtlas* @this, ImGuiMouseCursor cursor, ImVec2* out_offset, ImVec2* out_size, ConstantArray_ImVec2_2 out_uv_border, ConstantArray_ImVec2_2 out_uv_fill);

public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ImVec2* out_offset, ImVec2* out_size, ConstantArray_ImVec2_2 out_uv_border, ConstantArray_ImVec2_2 out_uv_fill)
Expand All @@ -274,7 +277,7 @@ public unsafe bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ImVec2* out_of
{ return GetMouseCursorTexData_PInvoke(@this, cursor, out_offset, out_size, out_uv_border, out_uv_fill); }
}

[FieldOffset(0)] public bool Locked;
[FieldOffset(0)] [MarshalAs(UnmanagedType.I1)] public bool Locked;

[FieldOffset(4)] public ImFontAtlasFlags Flags;

Expand Down
1 change: 1 addition & 0 deletions InfectedImGui/#Generated/ImFontAtlasCustomRect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public unsafe void Constructor()
}

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?IsPacked@ImFontAtlasCustomRect@@QEBA_NXZ", ExactSpelling = true)]
[return: MarshalAs(UnmanagedType.I1)]
private static extern bool IsPacked_PInvoke(ImFontAtlasCustomRect* @this);

public unsafe bool IsPacked()
Expand Down
6 changes: 3 additions & 3 deletions InfectedImGui/#Generated/ImFontConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public unsafe partial struct ImFontConfig

[FieldOffset(8)] public int FontDataSize;

[FieldOffset(12)] public bool FontDataOwnedByAtlas;
[FieldOffset(12)] [MarshalAs(UnmanagedType.I1)] public bool FontDataOwnedByAtlas;

[FieldOffset(16)] public int FontNo;

Expand All @@ -18,7 +18,7 @@ public unsafe partial struct ImFontConfig

[FieldOffset(28)] public int OversampleV;

[FieldOffset(32)] public bool PixelSnapH;
[FieldOffset(32)] [MarshalAs(UnmanagedType.I1)] public bool PixelSnapH;

[FieldOffset(36)] public ImVec2 GlyphExtraSpacing;

Expand All @@ -30,7 +30,7 @@ public unsafe partial struct ImFontConfig

[FieldOffset(68)] public float GlyphMaxAdvanceX;

[FieldOffset(72)] public bool MergeMode;
[FieldOffset(72)] [MarshalAs(UnmanagedType.I1)] public bool MergeMode;

[FieldOffset(76)] public uint RasterizerFlags;

Expand Down
1 change: 1 addition & 0 deletions InfectedImGui/#Generated/ImFontGlyphRangesBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public unsafe void Clear()
}

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?GetBit@ImFontGlyphRangesBuilder@@QEBA_N_K@Z", ExactSpelling = true)]
[return: MarshalAs(UnmanagedType.I1)]
private static extern bool GetBit_PInvoke(ImFontGlyphRangesBuilder* @this, ulong n);

public unsafe bool GetBit(ulong n)
Expand Down
50 changes: 25 additions & 25 deletions InfectedImGui/#Generated/ImGuiIO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,37 +36,37 @@ public unsafe partial struct ImGuiIO

[FieldOffset(168)] public float FontGlobalScale;

[FieldOffset(172)] public bool FontAllowUserScaling;
[FieldOffset(172)] [MarshalAs(UnmanagedType.I1)] public bool FontAllowUserScaling;

[FieldOffset(176)] public ImFont* FontDefault;

[FieldOffset(184)] public ImVec2 DisplayFramebufferScale;

[FieldOffset(192)] public bool ConfigDockingNoSplit;
[FieldOffset(192)] [MarshalAs(UnmanagedType.I1)] public bool ConfigDockingNoSplit;

[FieldOffset(193)] public bool ConfigDockingWithShift;
[FieldOffset(193)] [MarshalAs(UnmanagedType.I1)] public bool ConfigDockingWithShift;

[FieldOffset(194)] public bool ConfigDockingAlwaysTabBar;
[FieldOffset(194)] [MarshalAs(UnmanagedType.I1)] public bool ConfigDockingAlwaysTabBar;

[FieldOffset(195)] public bool ConfigDockingTransparentPayload;
[FieldOffset(195)] [MarshalAs(UnmanagedType.I1)] public bool ConfigDockingTransparentPayload;

[FieldOffset(196)] public bool ConfigViewportsNoAutoMerge;
[FieldOffset(196)] [MarshalAs(UnmanagedType.I1)] public bool ConfigViewportsNoAutoMerge;

[FieldOffset(197)] public bool ConfigViewportsNoTaskBarIcon;
[FieldOffset(197)] [MarshalAs(UnmanagedType.I1)] public bool ConfigViewportsNoTaskBarIcon;

[FieldOffset(198)] public bool ConfigViewportsNoDecoration;
[FieldOffset(198)] [MarshalAs(UnmanagedType.I1)] public bool ConfigViewportsNoDecoration;

[FieldOffset(199)] public bool ConfigViewportsNoDefaultParent;
[FieldOffset(199)] [MarshalAs(UnmanagedType.I1)] public bool ConfigViewportsNoDefaultParent;

[FieldOffset(200)] public bool MouseDrawCursor;
[FieldOffset(200)] [MarshalAs(UnmanagedType.I1)] public bool MouseDrawCursor;

[FieldOffset(201)] public bool ConfigMacOSXBehaviors;
[FieldOffset(201)] [MarshalAs(UnmanagedType.I1)] public bool ConfigMacOSXBehaviors;

[FieldOffset(202)] public bool ConfigInputTextCursorBlink;
[FieldOffset(202)] [MarshalAs(UnmanagedType.I1)] public bool ConfigInputTextCursorBlink;

[FieldOffset(203)] public bool ConfigWindowsResizeFromEdges;
[FieldOffset(203)] [MarshalAs(UnmanagedType.I1)] public bool ConfigWindowsResizeFromEdges;

[FieldOffset(204)] public bool ConfigWindowsMoveFromTitleBarOnly;
[FieldOffset(204)] [MarshalAs(UnmanagedType.I1)] public bool ConfigWindowsMoveFromTitleBarOnly;

[FieldOffset(208)] public float ConfigWindowsMemoryCompactTimer;

Expand Down Expand Up @@ -98,13 +98,13 @@ public unsafe partial struct ImGuiIO

[FieldOffset(312)] public uint MouseHoveredViewport;

[FieldOffset(316)] public bool KeyCtrl;
[FieldOffset(316)] [MarshalAs(UnmanagedType.I1)] public bool KeyCtrl;

[FieldOffset(317)] public bool KeyShift;
[FieldOffset(317)] [MarshalAs(UnmanagedType.I1)] public bool KeyShift;

[FieldOffset(318)] public bool KeyAlt;
[FieldOffset(318)] [MarshalAs(UnmanagedType.I1)] public bool KeyAlt;

[FieldOffset(319)] public bool KeySuper;
[FieldOffset(319)] [MarshalAs(UnmanagedType.I1)] public bool KeySuper;

[FieldOffset(320)] public ConstantArray_bool_512 KeysDown;

Expand Down Expand Up @@ -146,19 +146,19 @@ public unsafe void ClearInputCharacters()
{ ClearInputCharacters_PInvoke(@this); }
}

[FieldOffset(916)] public bool WantCaptureMouse;
[FieldOffset(916)] [MarshalAs(UnmanagedType.I1)] public bool WantCaptureMouse;

[FieldOffset(917)] public bool WantCaptureKeyboard;
[FieldOffset(917)] [MarshalAs(UnmanagedType.I1)] public bool WantCaptureKeyboard;

[FieldOffset(918)] public bool WantTextInput;
[FieldOffset(918)] [MarshalAs(UnmanagedType.I1)] public bool WantTextInput;

[FieldOffset(919)] public bool WantSetMousePos;
[FieldOffset(919)] [MarshalAs(UnmanagedType.I1)] public bool WantSetMousePos;

[FieldOffset(920)] public bool WantSaveIniSettings;
[FieldOffset(920)] [MarshalAs(UnmanagedType.I1)] public bool WantSaveIniSettings;

[FieldOffset(921)] public bool NavActive;
[FieldOffset(921)] [MarshalAs(UnmanagedType.I1)] public bool NavActive;

[FieldOffset(922)] public bool NavVisible;
[FieldOffset(922)] [MarshalAs(UnmanagedType.I1)] public bool NavVisible;

[FieldOffset(924)] public float Framerate;

Expand Down
3 changes: 2 additions & 1 deletion InfectedImGui/#Generated/ImGuiInputTextCallbackData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public unsafe partial struct ImGuiInputTextCallbackData

[FieldOffset(36)] public int BufSize;

[FieldOffset(40)] public bool BufDirty;
[FieldOffset(40)] [MarshalAs(UnmanagedType.I1)] public bool BufDirty;

[FieldOffset(44)] public int CursorPos;

Expand Down Expand Up @@ -74,6 +74,7 @@ public unsafe void ClearSelection()
}

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?HasSelection@ImGuiInputTextCallbackData@@QEBA_NXZ", ExactSpelling = true)]
[return: MarshalAs(UnmanagedType.I1)]
private static extern bool HasSelection_PInvoke(ImGuiInputTextCallbackData* @this);

public unsafe bool HasSelection()
Expand Down
1 change: 1 addition & 0 deletions InfectedImGui/#Generated/ImGuiListClipper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public unsafe void End()
}

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?Step@ImGuiListClipper@@QEAA_NXZ", ExactSpelling = true)]
[return: MarshalAs(UnmanagedType.I1)]
private static extern bool Step_PInvoke(ImGuiListClipper* @this);

public unsafe bool Step()
Expand Down
1 change: 1 addition & 0 deletions InfectedImGui/#Generated/ImGuiOnceUponAFrame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public unsafe void Constructor()
[FieldOffset(0)] public int RefFrame;

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "??BImGuiOnceUponAFrame@@QEBA_NXZ", ExactSpelling = true)]
[return: MarshalAs(UnmanagedType.I1)]
private static extern bool ____ConversionOperator_bool_PInvoke(ImGuiOnceUponAFrame* @this);

public unsafe bool ____ConversionOperator_bool()
Expand Down
7 changes: 5 additions & 2 deletions InfectedImGui/#Generated/ImGuiPayload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ public unsafe partial struct ImGuiPayload

[FieldOffset(24)] public ConstantArray_char_33 DataType;

[FieldOffset(57)] public bool Preview;
[FieldOffset(57)] [MarshalAs(UnmanagedType.I1)] public bool Preview;

[FieldOffset(58)] public bool Delivery;
[FieldOffset(58)] [MarshalAs(UnmanagedType.I1)] public bool Delivery;

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "??0ImGuiPayload@@QEAA@XZ", ExactSpelling = true)]
private static extern void Constructor_PInvoke(ImGuiPayload* @this);
Expand All @@ -39,6 +39,7 @@ public unsafe void Clear()
}

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?IsDataType@ImGuiPayload@@QEBA_NPEBD@Z", ExactSpelling = true)]
[return: MarshalAs(UnmanagedType.I1)]
private static extern bool IsDataType_PInvoke(ImGuiPayload* @this, byte* type);

public unsafe bool IsDataType(byte* type)
Expand All @@ -48,6 +49,7 @@ public unsafe bool IsDataType(byte* type)
}

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?IsPreview@ImGuiPayload@@QEBA_NXZ", ExactSpelling = true)]
[return: MarshalAs(UnmanagedType.I1)]
private static extern bool IsPreview_PInvoke(ImGuiPayload* @this);

public unsafe bool IsPreview()
Expand All @@ -57,6 +59,7 @@ public unsafe bool IsPreview()
}

[DllImport("InfectedImGui.Native.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?IsDelivery@ImGuiPayload@@QEBA_NXZ", ExactSpelling = true)]
[return: MarshalAs(UnmanagedType.I1)]
private static extern bool IsDelivery_PInvoke(ImGuiPayload* @this);

public unsafe bool IsDelivery()
Expand Down
4 changes: 2 additions & 2 deletions InfectedImGui/#Generated/ImGuiPlatformIO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public unsafe partial struct ImGuiPlatformIO

[FieldOffset(56)] public delegate* unmanaged[Cdecl]<ImGuiViewport*, void>* Platform_SetWindowFocus;

[FieldOffset(64)] public delegate* unmanaged[Cdecl]<ImGuiViewport*, bool>* Platform_GetWindowFocus;
[FieldOffset(64)] public delegate* unmanaged[Cdecl]<ImGuiViewport*, NativeBoolean>* Platform_GetWindowFocus;

[FieldOffset(72)] public delegate* unmanaged[Cdecl]<ImGuiViewport*, bool>* Platform_GetWindowMinimized;
[FieldOffset(72)] public delegate* unmanaged[Cdecl]<ImGuiViewport*, NativeBoolean>* Platform_GetWindowMinimized;

[FieldOffset(80)] public delegate* unmanaged[Cdecl]<ImGuiViewport*, byte*, void>* Platform_SetWindowTitle;

Expand Down
Loading

0 comments on commit a921b21

Please sign in to comment.