Don't hardcode mfplat.dll check (#439)

This commit is contained in:
pizzaboxer 2023-07-25 16:14:48 +01:00
parent 34bba491fb
commit 38b1c584d2
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8
2 changed files with 3 additions and 3 deletions

View File

@ -205,7 +205,7 @@ namespace Bloxstrap
return; return;
} }
if (!File.Exists("C:\\Windows\\System32\\mfplat.dll")) if (!File.Exists(Path.Combine(Directories.System, "mfplat.dll")))
{ {
Controls.ShowMessageBox( Controls.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.", "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.",
@ -1093,7 +1093,7 @@ namespace Bloxstrap
if (File.Exists(fileVersionFolder)) if (File.Exists(fileVersionFolder))
{ {
if (Utility.MD5Hash.FromFile(fileModFolder) == Utility.MD5Hash.FromFile(fileVersionFolder)) if (MD5Hash.FromFile(fileModFolder) == MD5Hash.FromFile(fileVersionFolder))
continue; continue;
} }

View File

@ -8,7 +8,7 @@
public static string LocalAppData => Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); public static string LocalAppData => Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
public static string Desktop => Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); public static string Desktop => Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
public static string StartMenu => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.StartMenu), "Programs", App.ProjectName); public static string StartMenu => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.StartMenu), "Programs", App.ProjectName);
public static string MyPictures => Environment.GetFolderPath(Environment.SpecialFolder.MyPictures); public static string System => Environment.GetFolderPath(Environment.SpecialFolder.System);
public static string Base { get; private set; } = ""; public static string Base { get; private set; } = "";
public static string Downloads { get; private set; } = ""; public static string Downloads { get; private set; } = "";