mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-07 08:24:37 +01:00
review (2)
This commit is contained in:
parent
3aca09d0fb
commit
9da178ad56
1 changed files with 2 additions and 4 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue