steam-deck-tools/FanControl/Program.cs

32 lines
1,016 B
C#
Raw Normal View History

2022-10-15 16:53:24 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LibreHardwareMonitor.Hardware;
using CommonHelpers;
2022-10-15 16:53:24 +02:00
namespace FanControl
{
internal class Program
{
2022-11-11 19:56:08 +01:00
static void Main(string[] args)
2022-11-12 15:41:22 +01:00
{
if (!Vlv0100.IsSupported())
{
String message = "";
message += "Current device is not supported.\n";
message += "FirmwareVersion: " + Vlv0100.GetFirmwareVersion().ToString("X") + "\n";
message += "BoardID: " + Vlv0100.GetBoardID().ToString("X") + "\n";
message += "PDCS: " + Vlv0100.GetPDCS().ToString("X") + "\n";
String title = "Steam Deck Fan Control v" + Application.ProductVersion.ToString();
MessageBox.Show(message, title, MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
2022-11-12 13:56:15 +01:00
Application.Run(new FanControlForm());
2022-11-11 19:56:08 +01:00
}
2022-10-15 16:53:24 +02:00
}
}