Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ public class MaaWlRootsController : MaaController
{
#pragma warning disable IDE0032 // 使用自动属性
private readonly string _debugWlrSocketPath;
private readonly bool _debugUseWin32VirtualKeyCodes;
#pragma warning restore IDE0032 // 使用自动属性

[ExcludeFromCodeCoverage(Justification = "Debugger display.")]
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private string DebuggerDisplay => IsInvalid
? $"Invalid {GetType().Name}"
: $"{GetType().Name} {{ WlrSocketPath = {_debugWlrSocketPath} }}";
: $"{GetType().Name} {{ WlrSocketPath = {_debugWlrSocketPath}, UseWin32VirtualKeyCodes = {_debugUseWin32VirtualKeyCodes} }}";

/// <summary>
/// Creates a <see cref="MaaWlRootsController"/> instance.
Expand Down Expand Up @@ -46,6 +47,7 @@ public MaaWlRootsController(string wlrSocketPath, bool useWin32VirtualKeyCodes =
SetHandle(handle, needReleased: true);

_debugWlrSocketPath = wlrSocketPath;
_debugUseWin32VirtualKeyCodes = useWin32VirtualKeyCodes;

if (link == LinkOption.Start)
LinkStartOnConstructed(check, wlrSocketPath);
Expand Down
Loading