XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
UTF-8
using SpaceEngineersBlueprintEditor.Installer.Profiles;
using System.Windows;

namespace SpaceEngineersBlueprintEditor.Installer;

/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
    protected override void OnStartup(StartupEventArgs e)
    {
        base.OnStartup(e);
        SystemProfile.Args = e.Args;
        if (e.Args.Length == 0)
        {
            SystemProfile.FirstInstall = true;
        }
        else
        {
            SystemProfile.StartMode = e.Args[0];
            SystemProfile.DownloadUrl = e.Args[1];
            SystemProfile.InstallPath = e.Args[2];
        }
    }
}