mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Don't hardcode mfplat.dll check (#439)
This commit is contained in:
parent
34bba491fb
commit
38b1c584d2
@ -205,7 +205,7 @@ namespace Bloxstrap
|
||||
return;
|
||||
}
|
||||
|
||||
if (!File.Exists("C:\\Windows\\System32\\mfplat.dll"))
|
||||
if (!File.Exists(Path.Combine(Directories.System, "mfplat.dll")))
|
||||
{
|
||||
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.",
|
||||
@ -1093,7 +1093,7 @@ namespace Bloxstrap
|
||||
|
||||
if (File.Exists(fileVersionFolder))
|
||||
{
|
||||
if (Utility.MD5Hash.FromFile(fileModFolder) == Utility.MD5Hash.FromFile(fileVersionFolder))
|
||||
if (MD5Hash.FromFile(fileModFolder) == MD5Hash.FromFile(fileVersionFolder))
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
public static string LocalAppData => Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
|
||||
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 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 Downloads { get; private set; } = "";
|
||||
|
Loading…
Reference in New Issue
Block a user