fix: Adds missing string interpolation handler for SetStringSlot (#2123)

This commit is contained in:
Kamron Batman 2025-02-13 19:30:47 -08:00 • committed by GitHub
parent 899146dcb7
commit 6d7b1b8bee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 21 additions and 7 deletions

View file

@ -71,6 +71,14 @@ public ref struct GumpStringsBuilder
handler.Clear();
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void SetStringSlot(ref RawInterpolatedStringHandler slotKeyHandler, ref RawInterpolatedStringHandler handler)
{
SetStringSlot(slotKeyHandler.Text, handler.Text);
slotKeyHandler.Clear();
handler.Clear();
}
public void SetStringSlot(ReadOnlySpan<char> slotKey, ReadOnlySpan<char> text)
{
var hash = HashUtility.ComputeHash64(slotKey);