Skip to content

Commit

Permalink
Add notice for missing Windows Media components
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Jun 26, 2023
1 parent e7fd0b9 commit 6af7188
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Bloxstrap/Bootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,14 @@ private async Task StartRoblox()
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())
Expand Down

0 comments on commit 6af7188

Please sign in to comment.