Add notice for missing Windows Media components

This commit is contained in:
pizzaboxer 2023-06-26 22:57:09 +01:00
parent e7fd0b9642
commit 6af7188ffe
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -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())