Remove Steam Deck motherboard check.

I'm getting pissed.

Issue: #14
Signed-off-by: Ritchie Frodomar <alkalinethunder@gmail.com>
This commit is contained in:
Ritchie Frodomar 2024-10-26 20:47:08 -04:00
parent 73b540b415
commit 7dc36d5d53
No known key found for this signature in database
GPG key ID: 47384A02C174B15F

View file

@ -5,10 +5,6 @@ namespace SociallyDistant.Core.Modules;
public abstract class Application
{
// We use this to detect if we're running on a Steam Deck, and warn the player to connect a keyboard, mouse, and external display.
private static readonly string steamDeckBoardVendor = "Valve";
private static readonly string steamDeckBoardName = "Jupiter";
private static Application? _current;
private bool started;
@ -92,15 +88,9 @@ public abstract class Application
{
Log.Warning("Getting Mac hardware info isn't supported yet, but we're not gonna crash over it.");
}
private void DetermineLinuxInfo()
{
// Read board info to find out if we're on a Steam Deck
var boardVendor = File.ReadAllText("/sys/devices/virtual/dmi/id/board_vendor");
var boardName = File.ReadAllText("/sys/devices/virtual/dmi/id/board_name");
IsHandheld = boardVendor == steamDeckBoardVendor && boardName == steamDeckBoardName;
string[] cpuModels = File.ReadAllLines("/proc/cpuinfo").Where(x => x.StartsWith("model name")).Select(x => x.Substring(x.IndexOf(":", StringComparison.Ordinal) + 1).Trim()).Distinct().ToArray();
if (cpuModels == null || cpuModels.Length == 0)