32-bit support notice followup

just realized the compatibility package makes the binary size balloon to 50mb lmao jesus
This commit is contained in:
pizzaboxer 2023-03-12 23:14:09 +00:00
parent b8dd708276
commit bbd2534f94
2 changed files with 18 additions and 13 deletions

View File

@ -1,7 +1,7 @@
using System; using System;
using System.Diagnostics;
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;
@ -83,19 +83,25 @@ namespace Bloxstrap
Logger.WriteLine($"[App::OnStartup] Starting {ProjectName} v{Version}"); Logger.WriteLine($"[App::OnStartup] Starting {ProjectName} v{Version}");
// todo: remove this once 32-bit support is fully gone
if (!Environment.Is64BitOperatingSystem) 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."; 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 // check if the processor actually supports 64-bit with wmic
// the user that they are able to upgrade to 64-bit windows // chances are the user just has a 32-bit version of windows installed on 64-bit hardware
foreach (ManagementObject result in new ManagementObjectSearcher("SELECT * FROM Win32_Processor").Get()) Process p = new();
{ p.StartInfo.CreateNoWindow = true;
// https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-processor p.StartInfo.UseShellExecute = false;
// architecture type 9 is x64 p.StartInfo.RedirectStandardOutput = true;
if (result["Architecture"].ToString() == "9") p.StartInfo.FileName = "wmic.exe";
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."; p.StartInfo.Arguments = "cpu get Architecture";
} p.Start();
// https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-processor
// architecture type 9 is x64
if (p.StandardOutput.ReadToEnd().Contains('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); ShowMessageBox(message, MessageBoxImage.Warning);
} }

View File

@ -7,8 +7,8 @@
<UseWPF>true</UseWPF> <UseWPF>true</UseWPF>
<UseWindowsForms>True</UseWindowsForms> <UseWindowsForms>True</UseWindowsForms>
<ApplicationIcon>Bloxstrap.ico</ApplicationIcon> <ApplicationIcon>Bloxstrap.ico</ApplicationIcon>
<Version>2.1.0</Version> <Version>2.0.0</Version>
<FileVersion>2.1.0.0</FileVersion> <FileVersion>2.0.0.0</FileVersion>
<ApplicationManifest>app.manifest</ApplicationManifest> <ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup> </PropertyGroup>
@ -26,7 +26,6 @@
<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>