diff --git a/test.ps1 b/filter_imgui_bindings.ps1
similarity index 94%
rename from test.ps1
rename to filter_imgui_bindings.ps1
index 5d5089fb5..7df1a71da 100644
--- a/test.ps1
+++ b/filter_imgui_bindings.ps1
@@ -1,5 +1,3 @@
-# public static .*(fmt|textEnd|args)
-
$ErrorActionPreference = "Stop"
Set-StrictMode -Version Latest
@@ -20,6 +18,13 @@ $sourcePaths = (
$null
)
+# replace "ImGuiKey.GamepadStart"
+$tmp = Get-Content -Path "$PSScriptRoot\imgui\Dalamud.Bindings.ImGui\Generated\Enums\ImGuiKeyPrivate.cs" -Raw
+$tmp = $tmp.Replace("unchecked((int)GamepadStart)", "unchecked((int)ImGuiKey.GamepadStart)").Trim()
+$tmp | Set-Content -Path "$PSScriptRoot\imgui\Dalamud.Bindings.ImGui\Generated\Enums\ImGuiKeyPrivate.cs" -Encoding ascii
+
+Remove-Item -Path "$PSScriptRoot\imgui\Dalamud.Bindings.ImGui\Generated\Handles\ImTextureID.cs" -Force
+
foreach ($sourcePath in $sourcePaths)
{
if (!$sourcePath)
@@ -38,6 +43,12 @@ foreach ($sourcePath in $sourcePaths)
$null = $imports.Add("System.Runtime.InteropServices")
$null = $imports.Add("System.Numerics")
$null = $imports.Add("HexaGen.Runtime")
+
+ if (!$sourcePath.StartsWith("$PSScriptRoot\imgui\Dalamud.Bindings.ImGui\"))
+ {
+ $null = $imports.Add("Dalamud.Bindings.ImGui")
+ }
+
$husks = New-Object -TypeName "System.Text.StringBuilder"
foreach ($file in (Get-ChildItem -Path $sourcePath))
{
@@ -130,6 +141,7 @@ foreach ($sourcePath in $sourcePaths)
$sb = New-Object -TypeName "System.Text.StringBuilder"
$discardMethods = New-Object -TypeName "System.Collections.Generic.SortedSet[string]"
+ $null = $discardMethods.Add("ImFontAtlasBuildPackCustomRectsNative")
foreach ($classDef in $classes.Keys)
{
$null = $sb.Clear().Append($husks).Append("public unsafe partial $classDef`r`n{`r`n")
diff --git a/generate_imgui_bindings.ps1 b/generate_imgui_bindings.ps1
index 84eb4e245..0384bb488 100644
--- a/generate_imgui_bindings.ps1
+++ b/generate_imgui_bindings.ps1
@@ -76,4 +76,6 @@ Set-Location -Path "bin/Debug/net9.0"
.\Generator.exe
# Restore initial directory
-Set-Location -Path $initialDirectory
\ No newline at end of file
+Set-Location -Path $initialDirectory
+
+& "$PSScriptRoot\filter_imgui_bindings.ps1"
diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions.gen.cs b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions.gen.cs
index 667be0067..7c50bc4bc 100644
--- a/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions.gen.cs
+++ b/imgui/Dalamud.Bindings.ImGui/Custom/Generated/Internals/Functions.gen.cs
@@ -124,7 +124,5 @@ namespace Dalamud.Bindings.ImGui
{
public unsafe partial class ImGuiP
{
- /*
- */
}
}
diff --git a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.016.cs b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.016.cs
index fed057871..6e47757d5 100644
--- a/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.016.cs
+++ b/imgui/Dalamud.Bindings.ImGui/Internals/Functions/Functions.016.cs
@@ -1610,8 +1610,6 @@ namespace Dalamud.Bindings.ImGui
}
}
- /*
-
///
/// To be documented.
///
@@ -1669,8 +1667,6 @@ namespace Dalamud.Bindings.ImGui
}
}
- */
-
///
/// To be documented.
///