mirror of
https://gitlab.acidiclight.dev/sociallydistant/sociallydistant.git
synced 2025-01-22 09:31:47 -05:00
Remove Steam Deck motherboard check.
I'm getting pissed. Issue: #14 Signed-off-by: Ritchie Frodomar <alkalinethunder@gmail.com>
This commit is contained in:
parent
73b540b415
commit
7dc36d5d53
1 changed files with 1 additions and 11 deletions
|
@ -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;
|
||||
|
||||
|
@ -95,12 +91,6 @@ public abstract class Application
|
|||
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue