API12 / .NET 9

This commit is contained in:
Loporrit
2025-03-27 04:13:49 +00:00
parent 46053bf8fa
commit 063eb5082a
5 changed files with 15 additions and 59 deletions

View File

@@ -155,7 +155,7 @@ public unsafe sealed class GameChatHooks : IDisposable
var pronounModule = UIModule.Instance()->GetPronounModule();
var chatString1 = pronounModule->ProcessString(message, true);
var chatString2 = this.ProcessStringStep2(pronounModule, chatString1, 1);
var chatBytes = MemoryHelper.ReadRaw((nint)chatString2->StringPtr, chatString2->Length);
var chatBytes = MemoryHelper.ReadRaw((nint)chatString2->StringPtr.Value, chatString2->Length);
if (chatBytes.Length > 0)
this._chatChannelOverride.ChatMessageHandler?.Invoke(chatBytes);