From 8482721b12fe65941a36a72b40cf91fd87d1eef6 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Thu, 2 May 2019 11:42:25 +1000 Subject: [PATCH] extra compatibility flag for new windows --- Rebuilder/Rebuilder.cs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Rebuilder/Rebuilder.cs b/Rebuilder/Rebuilder.cs index 3525e6b..5cd4a75 100644 --- a/Rebuilder/Rebuilder.cs +++ b/Rebuilder/Rebuilder.cs @@ -449,17 +449,27 @@ namespace Rebuilder if (run_fullscreen.Checked) { - key.SetValue(temp_path + "\\ISLE.EXE", ""); + key.SetValue(temp_path + "\\ISLE.EXE", "DWM8And16BitMitigation"); } else { - key.SetValue(temp_path + "\\ISLE.EXE", "256COLOR"); + key.SetValue(temp_path + "\\ISLE.EXE", "DWM8And16BitMitigation 256COLOR"); } } ProcessStartInfo start_info = new ProcessStartInfo(temp_path + "/ISLE.EXE"); start_info.WorkingDirectory = dir; - p = Process.Start(start_info); + + try + { + p = Process.Start(start_info); + } + catch + { + p = null; + return; + } + p.EnableRaisingEvents = true; p.Exited += new EventHandler(ProcessExit); run_button.Text = run_button_kill;