review (2)

This commit is contained in:
RedworkDE 2025-12-23 12:34:04 +01:00
parent 3aca09d0fb
commit 9da178ad56

View file

@ -150,14 +150,12 @@ internal unsafe readonly struct LogMessage(LogMessageQueueItem* ptr) : ILogMessa
// the formatting logic is taken from RaptureLogModule_Update
var utf8 = new Utf8String();
using var utf8 = new Utf8String();
SetName(logModule, this.SourceEntity);
SetName(logModule, this.TargetEntity);
logModule->RaptureTextModule->FormatString(this.GameData.Value.Text.ToDalamudString().EncodeWithNullTerminator(), &ptr->Parameters, &utf8);
var result = new ReadOnlySeString(utf8.AsSpan());
utf8.Dtor();
return result;
return new ReadOnlySeString(utf8.AsSpan());
void SetName(RaptureLogModule* self, LogMessageEntity item)
{