style: apply csharpier formatting to cycle files

This commit is contained in:
2026-05-21 14:46:19 +02:00
parent 636a62814f
commit 81123ccddf
8 changed files with 54 additions and 23 deletions
+15 -7
View File
@@ -27,21 +27,29 @@ internal sealed class FailedTellNotifier : IDisposable
// Creating/enabling a hook is safe off the framework thread (the
// ctor runs during host startup on the framework thread,
// eager-resolved via FailedTellNotifierInitHostedService).
_hook = Plugin.GameInteropProvider
.HookFromAddress<RaptureLogModule.Delegates.ShowLogMessageString>(
_hook =
Plugin.GameInteropProvider.HookFromAddress<RaptureLogModule.Delegates.ShowLogMessageString>(
RaptureLogModule.MemberFunctionPointers.ShowLogMessageString,
ShowLogMessageStringDetour);
ShowLogMessageStringDetour
);
_hook.Enable();
}
private unsafe void ShowLogMessageStringDetour(
RaptureLogModule* module, uint logMessageId, Utf8String* value)
RaptureLogModule* module,
uint logMessageId,
Utf8String* value
)
{
try
{
if (FailedTellMatcher.ShouldNotify(
logMessageId, Plugin.Config.NotifyFailedTell,
FailedTellMatcher.FailedTellLogMessageIds))
if (
FailedTellMatcher.ShouldNotify(
logMessageId,
Plugin.Config.NotifyFailedTell,
FailedTellMatcher.FailedTellLogMessageIds
)
)
{
var recipient = value is null ? string.Empty : value->ToString();
var content = string.IsNullOrEmpty(recipient)