From 6af7188ffefd894f350b04fa28b635ea3c5987e6 Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Mon, 26 Jun 2023 22:57:09 +0100 Subject: [PATCH] Add notice for missing Windows Media components --- Bloxstrap/Bootstrapper.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index 66cfddc..5c0c9df 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -261,6 +261,14 @@ namespace Bloxstrap return; } + if (!File.Exists("C:\\Windows\\System32\\mfplat.dll")) + { + App.ShowMessageBox("Roblox requires the use of Windows Media Foundation components. You appear to be missing them, likely because you are using an N edition of Windows. Please install them first, and then launch Roblox.", MessageBoxImage.Error); + Utilities.ShellExecute("https://support.microsoft.com/en-us/topic/media-feature-pack-list-for-windows-n-editions-c1c6fffa-d052-8338-7a79-a4bb980a700a"); + Dialog?.CloseBootstrapper(); + return; + } + _launchCommandLine = _launchCommandLine.Replace("LAUNCHTIMEPLACEHOLDER", DateTimeOffset.Now.ToUnixTimeMilliseconds().ToString()); if (App.Settings.Prop.Channel.ToLowerInvariant() != RobloxDeployment.DefaultChannel.ToLowerInvariant())