Example #1
0
        private void btnDetectUEPath_Click(object sender, EventArgs e)
        {
            var path = QuteResolver.GetDetectedUEPath();

            if (path != null && Directory.Exists(path))
            {
                if (txtUEPath.Text != path)
                {
                    txtUEPath.Text = path;
                    Console.WriteLine("Unreal Engine path changed to '{0}'.", path);
                }
            }
            else
            {
                Console.Error.WriteLine("Error: Could not auto-detect Unreal Engine installation path.");
            }
        }
Example #2
0
 public SettingsForm()
 {
     InitializeComponent();
     if (AppSettings.FirstTime)
     {
         try {
             txtUEPath.Text = QuteResolver.GetDetectedUEPath();
         } catch {
             txtUEPath.Text = "";
         }
         try {
             txtQtPath.Text = QuteResolver.GetDetectedQtCreatorPath();
         } catch {
             txtQtPath.Text = "";
         }
     }
     else
     {
         txtUEPath.Text = AppSettings.UEPath;
         txtQtPath.Text = AppSettings.QtPath;
     }
     UEPath        = txtUEPath.Text;
     QtCreatorPath = txtQtPath.Text;
 }