Name scripts properly

This commit is contained in:
Soreepeong 2025-07-27 00:30:18 +09:00
parent b53a97408b
commit b3e4505237
4 changed files with 17 additions and 9 deletions

View file

@ -1,5 +1,3 @@
# public static .*(fmt|textEnd|args)
$ErrorActionPreference = "Stop" $ErrorActionPreference = "Stop"
Set-StrictMode -Version Latest Set-StrictMode -Version Latest
@ -20,6 +18,13 @@ $sourcePaths = (
$null $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) foreach ($sourcePath in $sourcePaths)
{ {
if (!$sourcePath) if (!$sourcePath)
@ -38,6 +43,12 @@ foreach ($sourcePath in $sourcePaths)
$null = $imports.Add("System.Runtime.InteropServices") $null = $imports.Add("System.Runtime.InteropServices")
$null = $imports.Add("System.Numerics") $null = $imports.Add("System.Numerics")
$null = $imports.Add("HexaGen.Runtime") $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" $husks = New-Object -TypeName "System.Text.StringBuilder"
foreach ($file in (Get-ChildItem -Path $sourcePath)) foreach ($file in (Get-ChildItem -Path $sourcePath))
{ {
@ -130,6 +141,7 @@ foreach ($sourcePath in $sourcePaths)
$sb = New-Object -TypeName "System.Text.StringBuilder" $sb = New-Object -TypeName "System.Text.StringBuilder"
$discardMethods = New-Object -TypeName "System.Collections.Generic.SortedSet[string]" $discardMethods = New-Object -TypeName "System.Collections.Generic.SortedSet[string]"
$null = $discardMethods.Add("ImFontAtlasBuildPackCustomRectsNative")
foreach ($classDef in $classes.Keys) foreach ($classDef in $classes.Keys)
{ {
$null = $sb.Clear().Append($husks).Append("public unsafe partial $classDef`r`n{`r`n") $null = $sb.Clear().Append($husks).Append("public unsafe partial $classDef`r`n{`r`n")

View file

@ -77,3 +77,5 @@ Set-Location -Path "bin/Debug/net9.0"
# Restore initial directory # Restore initial directory
Set-Location -Path $initialDirectory Set-Location -Path $initialDirectory
& "$PSScriptRoot\filter_imgui_bindings.ps1"

View file

@ -124,7 +124,5 @@ namespace Dalamud.Bindings.ImGui
{ {
public unsafe partial class ImGuiP public unsafe partial class ImGuiP
{ {
/*
*/
} }
} }

View file

@ -1610,8 +1610,6 @@ namespace Dalamud.Bindings.ImGui
} }
} }
/*
/// <summary> /// <summary>
/// To be documented. /// To be documented.
/// </summary> /// </summary>
@ -1669,8 +1667,6 @@ namespace Dalamud.Bindings.ImGui
} }
} }
*/
/// <summary> /// <summary>
/// To be documented. /// To be documented.
/// </summary> /// </summary>