mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-20 14:57:45 +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
|
// the formatting logic is taken from RaptureLogModule_Update
|
||||||
|
|
||||||
var utf8 = new Utf8String();
|
using var utf8 = new Utf8String();
|
||||||
SetName(logModule, this.SourceEntity);
|
SetName(logModule, this.SourceEntity);
|
||||||
SetName(logModule, this.TargetEntity);
|
SetName(logModule, this.TargetEntity);
|
||||||
logModule->RaptureTextModule->FormatString(this.GameData.Value.Text.ToDalamudString().EncodeWithNullTerminator(), &ptr->Parameters, &utf8);
|
logModule->RaptureTextModule->FormatString(this.GameData.Value.Text.ToDalamudString().EncodeWithNullTerminator(), &ptr->Parameters, &utf8);
|
||||||
|
|
||||||
var result = new ReadOnlySeString(utf8.AsSpan());
|
return new ReadOnlySeString(utf8.AsSpan());
|
||||||
utf8.Dtor();
|
|
||||||
return result;
|
|
||||||
|
|
||||||
void SetName(RaptureLogModule* self, LogMessageEntity item)
|
void SetName(RaptureLogModule* self, LogMessageEntity item)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue