mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Add 32-bit support notice
This commit is contained in:
parent
75290fd9ee
commit
b8dd708276
@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Management;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
@ -82,6 +83,23 @@ namespace Bloxstrap
|
|||||||
|
|
||||||
Logger.WriteLine($"[App::OnStartup] Starting {ProjectName} v{Version}");
|
Logger.WriteLine($"[App::OnStartup] Starting {ProjectName} v{Version}");
|
||||||
|
|
||||||
|
if (!Environment.Is64BitOperatingSystem)
|
||||||
|
{
|
||||||
|
string message = "In the near future, Roblox will no longer support 32-bit Windows devices. To keep playing Roblox, please use a device that is 64-bit compatible.";
|
||||||
|
|
||||||
|
// check if the processor actually supports 64-bit so we can tell
|
||||||
|
// the user that they are able to upgrade to 64-bit windows
|
||||||
|
foreach (ManagementObject result in new ManagementObjectSearcher("SELECT * FROM Win32_Processor").Get())
|
||||||
|
{
|
||||||
|
// https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-processor
|
||||||
|
// architecture type 9 is x64
|
||||||
|
if (result["Architecture"].ToString() == "9")
|
||||||
|
message += "\n\nYour computer is running a 32-bit version of Windows but is actually 64-bit compatible. Search online for how to upgrade to a 64-bit version of Windows.";
|
||||||
|
}
|
||||||
|
|
||||||
|
ShowMessageBox(message, MessageBoxImage.Warning);
|
||||||
|
}
|
||||||
|
|
||||||
// To customize application configuration such as set high DPI settings or default font,
|
// To customize application configuration such as set high DPI settings or default font,
|
||||||
// see https://aka.ms/applicationconfiguration.
|
// see https://aka.ms/applicationconfiguration.
|
||||||
ApplicationConfiguration.Initialize();
|
ApplicationConfiguration.Initialize();
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.1.0" />
|
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.1.0" />
|
||||||
<PackageReference Include="DiscordRichPresence" Version="1.1.3.18" />
|
<PackageReference Include="DiscordRichPresence" Version="1.1.3.18" />
|
||||||
<PackageReference Include="ini-parser-netstandard" Version="2.5.2" />
|
<PackageReference Include="ini-parser-netstandard" Version="2.5.2" />
|
||||||
|
<PackageReference Include="Microsoft.Windows.Compatibility" Version="7.0.0" />
|
||||||
<PackageReference Include="securifybv.ShellLink" Version="0.1.0" />
|
<PackageReference Include="securifybv.ShellLink" Version="0.1.0" />
|
||||||
<PackageReference Include="WPF-UI" Version="2.0.3" />
|
<PackageReference Include="WPF-UI" Version="2.0.3" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
Loading…
Reference in New Issue
Block a user