Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions PCL.Core/App/PromoteService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ public static bool AppendAndActivate(string command, Action<string>? callback =

public override void Start()
{
var args = Environment.GetCommandLineArgs();
if (args is [_, "promote", _])
var args = Basics.CommandLineArguments;
if (args is ["promote", _])
{
Context.Info("当前进程为提权进程");
IsCurrentProcessPromoted = true;
Expand Down
2 changes: 1 addition & 1 deletion Plain Craft Launcher 2/Application.xaml.vb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Public Class Application
PresentationTraceSources.DataBindingSource.Switch.Level = SourceLevels.Error
SecretOnApplicationStart()
'检查参数调用
Dim args = Environment.GetCommandLineArgs.Skip(1).ToArray()
Dim args = Basics.CommandLineArguments
If args.Length > 0 Then
If args(0) = "--gpu" Then
'调整显卡设置
Expand Down
2 changes: 1 addition & 1 deletion Plain Craft Launcher 2/Program.vb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Module Program
<STAThread>
Public Sub Main()
#If DEBUG
If Environment.GetCommandLineArgs().Contains("--debug") Then
If Basics.CommandLineArguments.Contains("--debug") Then
While Not Debugger.IsAttached
Thread.Sleep(50)
End While
Expand Down
Loading