From 70906c90044a1805110aa05f3245d73482923708 Mon Sep 17 00:00:00 2001 From: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> Date: Mon, 29 Aug 2022 17:01:26 -0700 Subject: [PATCH] quick fail is the user is somehow running EmuHawk as a 32 bit process --- src/BizHawk.Client.EmuHawk/Program.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/BizHawk.Client.EmuHawk/Program.cs b/src/BizHawk.Client.EmuHawk/Program.cs index 8e1d17a0de..ca1ee27274 100644 --- a/src/BizHawk.Client.EmuHawk/Program.cs +++ b/src/BizHawk.Client.EmuHawk/Program.cs @@ -26,6 +26,14 @@ namespace BizHawk.Client.EmuHawk Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); + // quickly check if the user is running this as a 32 bit process somehow + if (!Environment.Is64BitProcess) + { + using (var box = new ExceptionBox($"EmuHawk requires a 64 bit environment in order to run! EmuHawk will now close.")) box.ShowDialog(); + Process.GetCurrentProcess().Kill(); + return; + } + if (OSTC.IsUnixHost) { // for Unix, skip everything else and just wire up the event handler