示例#1
0
        public App()
        {
            DispatcherUnhandledException += App_DispatcherUnhandledException;
            SentryOptions sentryOptions = new SentryOptions();

            sentryOptions.Dsn                  = "https://[email protected]/5584682";
            sentryOptions.StackTraceMode       = StackTraceMode.Enhanced;
            sentryOptions.AttachStacktrace     = true;
            sentryOptions.AutoSessionTracking  = true;
            sentryOptions.DetectStartupTime    = StartupTimeDetectionMode.Best;
            sentryOptions.Release              = UnrealBinaryBuilderHelpers.GetProductVersionString();
            sentryOptions.ReportAssembliesMode = ReportAssembliesMode.InformationalVersion;
            SentrySdk.Init(sentryOptions);
        }
示例#2
0
        public static List <EngineBuild> GetInstalledEngines()
        {
            RegistryKey EngineInstallations = Registry.LocalMachine.OpenSubKey("Software\\EpicGames\\Unreal Engine");

            if (EngineInstallations == null)
            {
                return(null);
            }

            List <EngineBuild> ReturnValue = new List <EngineBuild>();

            string[] InstalledEngines = EngineInstallations.GetSubKeyNames();
            foreach (var s in InstalledEngines)
            {
                RegistryKey InstalledDirectoryKey = EngineInstallations.OpenSubKey(s);
                object      o = InstalledDirectoryKey.GetValue("InstalledDirectory");

                EngineBuild engineBuild = new EngineBuild();
                engineBuild.bIsCustomEngine   = false;
                engineBuild.EngineAssociation = s;
                engineBuild.EngineName        = s;
                engineBuild.EnginePath        = o as string;

                ReturnValue.Add(engineBuild);
            }

            RegistryKey CustomEngineInstallations = Registry.CurrentUser.OpenSubKey("Software\\Epic Games\\Unreal Engine\\Builds");

            InstalledEngines = CustomEngineInstallations.GetValueNames();
            foreach (var s in InstalledEngines)
            {
                object o = CustomEngineInstallations.GetValue(s);
                string EngineBuildName = UnrealBinaryBuilderHelpers.GetEngineVersion(o as string);

                EngineBuild engineBuild = new EngineBuild();
                engineBuild.bIsCustomEngine   = true;
                engineBuild.EngineAssociation = s;
                engineBuild.EngineName        = $"{EngineBuildName} (Custom)";
                engineBuild.EnginePath        = o as string;

                if (EngineBuildName != null /*&& ReturnValue.Contains(engineBuild) == false*/)
                {
                    ReturnValue.Add(engineBuild);
                }
            }

            return(ReturnValue);
        }
示例#3
0
 public DownloadDialog(MainWindow mainWindow, string InVersion)
 {
     InitializeComponent();
     CefWebBrowser.Address          = $"{CefWebBrowser.Address}#{InVersion.Replace(".", "")}";
     _mainWindow                    = mainWindow;
     DownloadProgressbar.Visibility = Visibility.Collapsed;
     DownloadNowBtn.Visibility      = CancelBtn.Visibility = Visibility.Visible;
     VersionText                    = InVersion;
     DownloadProgressTextBlock.Text = $"Download {VersionText}? You are running {UnrealBinaryBuilderHelpers.GetProductVersionString()}";
 }