diff --git a/src/Snap.Hutao/Snap.Hutao/Service/Game/ProcessInterop.cs b/src/Snap.Hutao/Snap.Hutao/Service/Game/ProcessInterop.cs index dc213e76..e4aca5c7 100644 --- a/src/Snap.Hutao/Snap.Hutao/Service/Game/ProcessInterop.cs +++ b/src/Snap.Hutao/Snap.Hutao/Service/Game/ProcessInterop.cs @@ -29,8 +29,9 @@ internal static class ProcessInterop Must.Argument(options.IsBorderless ^ options.IsExclusive, "无边框与全屏选项无法同时生效"); // https://docs.unity.cn/cn/current/Manual/PlayerCommandLineArguments.html + // https://docs.unity3d.com/2017.4/Documentation/Manual/CommandLineArguments.html string commandLine = new CommandLineBuilder() - .AppendIf("-window-mode", options.IsBorderless, "borderless") + .AppendIf("-popupwindow", options.IsBorderless) .AppendIf("-window-mode", options.IsExclusive, "exclusive") .Append("-screen-fullscreen", options.IsFullScreen ? 1 : 0) .Append("-screen-width", options.ScreenWidth)