From 625d7596d341cf15d37a9a9890a595bf882ac5c7 Mon Sep 17 00:00:00 2001 From: Infi Date: Tue, 11 Jun 2024 22:21:21 +0200 Subject: [PATCH] Temporary fix for linkshell names not appearing --- ChatTwo/ChatTwo.csproj | 2 +- ChatTwo/ChatTwo.yaml | 1 + ChatTwo/GameFunctions/Chat.cs | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChatTwo/ChatTwo.csproj b/ChatTwo/ChatTwo.csproj index bc28d5d..88f534f 100755 --- a/ChatTwo/ChatTwo.csproj +++ b/ChatTwo/ChatTwo.csproj @@ -1,6 +1,6 @@ - 1.26.1 + 1.26.2 net8.0-windows enable enable diff --git a/ChatTwo/ChatTwo.yaml b/ChatTwo/ChatTwo.yaml index bec3abe..1180090 100755 --- a/ChatTwo/ChatTwo.yaml +++ b/ChatTwo/ChatTwo.yaml @@ -30,3 +30,4 @@ changelog: |- - Fix flags not working in reply mode - Force the main chat log to be always open - Prevent emotes inside auto translation + - Make Linkshells appear in selection again diff --git a/ChatTwo/GameFunctions/Chat.cs b/ChatTwo/GameFunctions/Chat.cs index 4e4d082..12a5a52 100755 --- a/ChatTwo/GameFunctions/Chat.cs +++ b/ChatTwo/GameFunctions/Chat.cs @@ -129,7 +129,8 @@ internal sealed unsafe class Chat : IDisposable if (lsInfo == null) return null; - var utf = instance->GetLinkshellName(lsInfo); + // TODO APIX: lsInfo type changed to Entry + var utf = instance->GetLinkshellName(*(ulong**)lsInfo); return utf == null ? null : MemoryHelper.ReadStringNullTerminated((nint) utf); }