mirror of
https://github.com/EpicMorg/SteamPathsLib.git
synced 2025-01-13 23:07:55 +03:00
pre-release
This commit is contained in:
parent
f9bf02bd5c
commit
922a99a027
@ -30,6 +30,9 @@
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>steam.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
@ -44,5 +47,8 @@
|
||||
<Compile Include="SteamPathsUtil.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="steam.ico" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
@ -6,12 +6,12 @@ using System.Runtime.InteropServices;
|
||||
// набора атрибутов. Измените значения этих атрибутов для изменения сведений,
|
||||
// связанные со сборкой.
|
||||
[assembly: AssemblyTitle("EpicMorg.SteamPathsLib")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyDescription("Steam Paths Library")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyCompany("EpicMorg")]
|
||||
[assembly: AssemblyProduct("EpicMorg.SteamPathsLib")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2020")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCopyright("Copyright © EpicMorg 2020")]
|
||||
[assembly: AssemblyTrademark("Valve")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
|
||||
|
@ -136,11 +136,23 @@ namespace EpicMorg.SteamPathsLib
|
||||
return null;
|
||||
}
|
||||
|
||||
public static bool IsInstalledApps(int number)
|
||||
public static string GetInstalledAppKeyRegistryById(int appId)
|
||||
{
|
||||
try
|
||||
{
|
||||
var appKey = _valveSteamAppsPattern + number;
|
||||
return Registry.CurrentUser.OpenSubKey(_valveSteamAppsPattern + appId).ToString();
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
return null;
|
||||
};
|
||||
}
|
||||
|
||||
public static bool IsInstalledApps(int appId)
|
||||
{
|
||||
try
|
||||
{
|
||||
var appKey = _valveSteamAppsPattern + appId;
|
||||
|
||||
using (var key = Registry.CurrentUser.OpenSubKey(appKey))
|
||||
{
|
||||
@ -155,5 +167,6 @@ namespace EpicMorg.SteamPathsLib
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
BIN
src/EpicMorg.SteamPathsLib/steam.ico
Normal file
BIN
src/EpicMorg.SteamPathsLib/steam.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 104 KiB |
@ -5,16 +5,42 @@ VisualStudioVersion = 16.0.29509.3
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EpicMorg.SteamPathsLib", "EpicMorg.SteamPathsLib\EpicMorg.SteamPathsLib.csproj", "{E34AE985-7C7E-49BA-A2B0-70D88F865265}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SteamTest", "SteamTest\SteamTest.csproj", "{5BB35A56-BE06-495B-BCF8-7BD484E3D03A}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{E34AE985-7C7E-49BA-A2B0-70D88F865265}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{E34AE985-7C7E-49BA-A2B0-70D88F865265}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E34AE985-7C7E-49BA-A2B0-70D88F865265}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{E34AE985-7C7E-49BA-A2B0-70D88F865265}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{E34AE985-7C7E-49BA-A2B0-70D88F865265}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{E34AE985-7C7E-49BA-A2B0-70D88F865265}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{E34AE985-7C7E-49BA-A2B0-70D88F865265}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E34AE985-7C7E-49BA-A2B0-70D88F865265}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{E34AE985-7C7E-49BA-A2B0-70D88F865265}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{E34AE985-7C7E-49BA-A2B0-70D88F865265}.Release|x64.Build.0 = Release|Any CPU
|
||||
{E34AE985-7C7E-49BA-A2B0-70D88F865265}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{E34AE985-7C7E-49BA-A2B0-70D88F865265}.Release|x86.Build.0 = Release|Any CPU
|
||||
{5BB35A56-BE06-495B-BCF8-7BD484E3D03A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{5BB35A56-BE06-495B-BCF8-7BD484E3D03A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{5BB35A56-BE06-495B-BCF8-7BD484E3D03A}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{5BB35A56-BE06-495B-BCF8-7BD484E3D03A}.Debug|x64.Build.0 = Debug|x64
|
||||
{5BB35A56-BE06-495B-BCF8-7BD484E3D03A}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{5BB35A56-BE06-495B-BCF8-7BD484E3D03A}.Debug|x86.Build.0 = Debug|x86
|
||||
{5BB35A56-BE06-495B-BCF8-7BD484E3D03A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{5BB35A56-BE06-495B-BCF8-7BD484E3D03A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{5BB35A56-BE06-495B-BCF8-7BD484E3D03A}.Release|x64.ActiveCfg = Release|x64
|
||||
{5BB35A56-BE06-495B-BCF8-7BD484E3D03A}.Release|x64.Build.0 = Release|x64
|
||||
{5BB35A56-BE06-495B-BCF8-7BD484E3D03A}.Release|x86.ActiveCfg = Release|x86
|
||||
{5BB35A56-BE06-495B-BCF8-7BD484E3D03A}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
6
src/SteamTest/App.config
Normal file
6
src/SteamTest/App.config
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
|
||||
</startup>
|
||||
</configuration>
|
446
src/SteamTest/FrmMain.Designer.cs
generated
Normal file
446
src/SteamTest/FrmMain.Designer.cs
generated
Normal file
@ -0,0 +1,446 @@
|
||||
namespace SteamTest
|
||||
{
|
||||
partial class FrmMain
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null)) {
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));
|
||||
this.checkBoxVavleReg = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxVavleSteamReg = new System.Windows.Forms.CheckBox();
|
||||
this.txtVavleReg = new System.Windows.Forms.TextBox();
|
||||
this.txtVavleSteamReg = new System.Windows.Forms.TextBox();
|
||||
this.checkBoxVavleSteamExe = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxVavleSteamSmodPath = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxVavleSteamPath = new System.Windows.Forms.CheckBox();
|
||||
this.txtBoxVavleSteamPID = new System.Windows.Forms.TextBox();
|
||||
this.txtBoxVavleSteamPath = new System.Windows.Forms.TextBox();
|
||||
this.txtBoxVavleSteamExe = new System.Windows.Forms.TextBox();
|
||||
this.checkBoxVavleSteamApps = new System.Windows.Forms.CheckBox();
|
||||
this.txtBoxVavleSteamApps = new System.Windows.Forms.TextBox();
|
||||
this.groupBoxRegTest = new System.Windows.Forms.GroupBox();
|
||||
this.checkBoxVavleSteamPID = new System.Windows.Forms.CheckBox();
|
||||
this.txtBoxVavleSteamSmodPath = new System.Windows.Forms.TextBox();
|
||||
this.txtBoxVavleSteamApps218 = new System.Windows.Forms.TextBox();
|
||||
this.txtBoxVavleSteamApps243730 = new System.Windows.Forms.TextBox();
|
||||
this.checkBoxVavleSteamApps218 = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxVavleSteamApps218Installed = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxVavleSteamApps243730Installed = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxVavleSteamApps243730 = new System.Windows.Forms.CheckBox();
|
||||
this.btnGetScreenShot = new System.Windows.Forms.Button();
|
||||
this.folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
|
||||
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.buttonreCheck = new System.Windows.Forms.Button();
|
||||
this.checkBoxVavleSteamAppsCustomInstalled = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxVavleSteamAppsCustom = new System.Windows.Forms.CheckBox();
|
||||
this.txtBoxVavleSteamAppsCustom = new System.Windows.Forms.TextBox();
|
||||
this.labelHR = new System.Windows.Forms.Label();
|
||||
this.textBoxTestAppId = new System.Windows.Forms.NumericUpDown();
|
||||
this.groupBoxRegTest.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.textBoxTestAppId)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// checkBoxVavleReg
|
||||
//
|
||||
this.checkBoxVavleReg.AutoCheck = false;
|
||||
this.checkBoxVavleReg.AutoSize = true;
|
||||
this.checkBoxVavleReg.Location = new System.Drawing.Point(12, 21);
|
||||
this.checkBoxVavleReg.Name = "checkBoxVavleReg";
|
||||
this.checkBoxVavleReg.Size = new System.Drawing.Size(200, 17);
|
||||
this.checkBoxVavleReg.TabIndex = 0;
|
||||
this.checkBoxVavleReg.Text = "The presence \"Valve\" in the registry:";
|
||||
this.checkBoxVavleReg.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxVavleSteamReg
|
||||
//
|
||||
this.checkBoxVavleSteamReg.AutoCheck = false;
|
||||
this.checkBoxVavleSteamReg.AutoSize = true;
|
||||
this.checkBoxVavleSteamReg.Location = new System.Drawing.Point(12, 47);
|
||||
this.checkBoxVavleSteamReg.Name = "checkBoxVavleSteamReg";
|
||||
this.checkBoxVavleSteamReg.Size = new System.Drawing.Size(203, 17);
|
||||
this.checkBoxVavleSteamReg.TabIndex = 0;
|
||||
this.checkBoxVavleSteamReg.Text = "The presence \"Steam\" in the registry:";
|
||||
this.checkBoxVavleSteamReg.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// txtVavleReg
|
||||
//
|
||||
this.txtVavleReg.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtVavleReg.Location = new System.Drawing.Point(218, 19);
|
||||
this.txtVavleReg.Name = "txtVavleReg";
|
||||
this.txtVavleReg.ReadOnly = true;
|
||||
this.txtVavleReg.Size = new System.Drawing.Size(300, 20);
|
||||
this.txtVavleReg.TabIndex = 1;
|
||||
//
|
||||
// txtVavleSteamReg
|
||||
//
|
||||
this.txtVavleSteamReg.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtVavleSteamReg.Location = new System.Drawing.Point(218, 45);
|
||||
this.txtVavleSteamReg.Name = "txtVavleSteamReg";
|
||||
this.txtVavleSteamReg.ReadOnly = true;
|
||||
this.txtVavleSteamReg.Size = new System.Drawing.Size(300, 20);
|
||||
this.txtVavleSteamReg.TabIndex = 1;
|
||||
//
|
||||
// checkBoxVavleSteamExe
|
||||
//
|
||||
this.checkBoxVavleSteamExe.AutoCheck = false;
|
||||
this.checkBoxVavleSteamExe.AutoSize = true;
|
||||
this.checkBoxVavleSteamExe.Location = new System.Drawing.Point(12, 73);
|
||||
this.checkBoxVavleSteamExe.Name = "checkBoxVavleSteamExe";
|
||||
this.checkBoxVavleSteamExe.Size = new System.Drawing.Size(74, 17);
|
||||
this.checkBoxVavleSteamExe.TabIndex = 0;
|
||||
this.checkBoxVavleSteamExe.Text = "SteamExe";
|
||||
this.checkBoxVavleSteamExe.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxVavleSteamSmodPath
|
||||
//
|
||||
this.checkBoxVavleSteamSmodPath.AutoCheck = false;
|
||||
this.checkBoxVavleSteamSmodPath.AutoSize = true;
|
||||
this.checkBoxVavleSteamSmodPath.Location = new System.Drawing.Point(12, 151);
|
||||
this.checkBoxVavleSteamSmodPath.Name = "checkBoxVavleSteamSmodPath";
|
||||
this.checkBoxVavleSteamSmodPath.Size = new System.Drawing.Size(130, 17);
|
||||
this.checkBoxVavleSteamSmodPath.TabIndex = 0;
|
||||
this.checkBoxVavleSteamSmodPath.Text = "SourceModInstallPath";
|
||||
this.checkBoxVavleSteamSmodPath.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxVavleSteamPath
|
||||
//
|
||||
this.checkBoxVavleSteamPath.AutoCheck = false;
|
||||
this.checkBoxVavleSteamPath.AutoSize = true;
|
||||
this.checkBoxVavleSteamPath.Location = new System.Drawing.Point(12, 99);
|
||||
this.checkBoxVavleSteamPath.Name = "checkBoxVavleSteamPath";
|
||||
this.checkBoxVavleSteamPath.Size = new System.Drawing.Size(78, 17);
|
||||
this.checkBoxVavleSteamPath.TabIndex = 0;
|
||||
this.checkBoxVavleSteamPath.Text = "SteamPath";
|
||||
this.checkBoxVavleSteamPath.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// txtBoxVavleSteamPID
|
||||
//
|
||||
this.txtBoxVavleSteamPID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtBoxVavleSteamPID.Location = new System.Drawing.Point(218, 123);
|
||||
this.txtBoxVavleSteamPID.Name = "txtBoxVavleSteamPID";
|
||||
this.txtBoxVavleSteamPID.ReadOnly = true;
|
||||
this.txtBoxVavleSteamPID.Size = new System.Drawing.Size(300, 20);
|
||||
this.txtBoxVavleSteamPID.TabIndex = 1;
|
||||
//
|
||||
// txtBoxVavleSteamPath
|
||||
//
|
||||
this.txtBoxVavleSteamPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtBoxVavleSteamPath.Location = new System.Drawing.Point(218, 97);
|
||||
this.txtBoxVavleSteamPath.Name = "txtBoxVavleSteamPath";
|
||||
this.txtBoxVavleSteamPath.ReadOnly = true;
|
||||
this.txtBoxVavleSteamPath.Size = new System.Drawing.Size(300, 20);
|
||||
this.txtBoxVavleSteamPath.TabIndex = 1;
|
||||
//
|
||||
// txtBoxVavleSteamExe
|
||||
//
|
||||
this.txtBoxVavleSteamExe.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtBoxVavleSteamExe.Location = new System.Drawing.Point(218, 71);
|
||||
this.txtBoxVavleSteamExe.Name = "txtBoxVavleSteamExe";
|
||||
this.txtBoxVavleSteamExe.ReadOnly = true;
|
||||
this.txtBoxVavleSteamExe.Size = new System.Drawing.Size(300, 20);
|
||||
this.txtBoxVavleSteamExe.TabIndex = 1;
|
||||
//
|
||||
// checkBoxVavleSteamApps
|
||||
//
|
||||
this.checkBoxVavleSteamApps.AutoCheck = false;
|
||||
this.checkBoxVavleSteamApps.AutoSize = true;
|
||||
this.checkBoxVavleSteamApps.Location = new System.Drawing.Point(12, 177);
|
||||
this.checkBoxVavleSteamApps.Name = "checkBoxVavleSteamApps";
|
||||
this.checkBoxVavleSteamApps.Size = new System.Drawing.Size(186, 17);
|
||||
this.checkBoxVavleSteamApps.TabIndex = 0;
|
||||
this.checkBoxVavleSteamApps.Text = "Наличие ключа Apps в реестре:";
|
||||
this.checkBoxVavleSteamApps.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// txtBoxVavleSteamApps
|
||||
//
|
||||
this.txtBoxVavleSteamApps.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtBoxVavleSteamApps.Location = new System.Drawing.Point(218, 175);
|
||||
this.txtBoxVavleSteamApps.Name = "txtBoxVavleSteamApps";
|
||||
this.txtBoxVavleSteamApps.ReadOnly = true;
|
||||
this.txtBoxVavleSteamApps.Size = new System.Drawing.Size(300, 20);
|
||||
this.txtBoxVavleSteamApps.TabIndex = 1;
|
||||
//
|
||||
// groupBoxRegTest
|
||||
//
|
||||
this.groupBoxRegTest.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxRegTest.Controls.Add(this.textBoxTestAppId);
|
||||
this.groupBoxRegTest.Controls.Add(this.labelHR);
|
||||
this.groupBoxRegTest.Controls.Add(this.checkBoxVavleSteamPID);
|
||||
this.groupBoxRegTest.Controls.Add(this.checkBoxVavleReg);
|
||||
this.groupBoxRegTest.Controls.Add(this.checkBoxVavleSteamSmodPath);
|
||||
this.groupBoxRegTest.Controls.Add(this.checkBoxVavleSteamPath);
|
||||
this.groupBoxRegTest.Controls.Add(this.checkBoxVavleSteamReg);
|
||||
this.groupBoxRegTest.Controls.Add(this.txtBoxVavleSteamSmodPath);
|
||||
this.groupBoxRegTest.Controls.Add(this.txtBoxVavleSteamAppsCustom);
|
||||
this.groupBoxRegTest.Controls.Add(this.txtBoxVavleSteamApps218);
|
||||
this.groupBoxRegTest.Controls.Add(this.txtBoxVavleSteamApps243730);
|
||||
this.groupBoxRegTest.Controls.Add(this.txtBoxVavleSteamPID);
|
||||
this.groupBoxRegTest.Controls.Add(this.txtBoxVavleSteamApps);
|
||||
this.groupBoxRegTest.Controls.Add(this.checkBoxVavleSteamAppsCustom);
|
||||
this.groupBoxRegTest.Controls.Add(this.checkBoxVavleSteamApps218);
|
||||
this.groupBoxRegTest.Controls.Add(this.checkBoxVavleSteamAppsCustomInstalled);
|
||||
this.groupBoxRegTest.Controls.Add(this.txtBoxVavleSteamPath);
|
||||
this.groupBoxRegTest.Controls.Add(this.checkBoxVavleSteamApps218Installed);
|
||||
this.groupBoxRegTest.Controls.Add(this.checkBoxVavleSteamApps243730Installed);
|
||||
this.groupBoxRegTest.Controls.Add(this.checkBoxVavleSteamApps243730);
|
||||
this.groupBoxRegTest.Controls.Add(this.txtBoxVavleSteamExe);
|
||||
this.groupBoxRegTest.Controls.Add(this.checkBoxVavleSteamApps);
|
||||
this.groupBoxRegTest.Controls.Add(this.checkBoxVavleSteamExe);
|
||||
this.groupBoxRegTest.Controls.Add(this.txtVavleSteamReg);
|
||||
this.groupBoxRegTest.Controls.Add(this.txtVavleReg);
|
||||
this.groupBoxRegTest.Location = new System.Drawing.Point(12, 12);
|
||||
this.groupBoxRegTest.Name = "groupBoxRegTest";
|
||||
this.groupBoxRegTest.Size = new System.Drawing.Size(530, 369);
|
||||
this.groupBoxRegTest.TabIndex = 3;
|
||||
this.groupBoxRegTest.TabStop = false;
|
||||
this.groupBoxRegTest.Text = "Registry Test:";
|
||||
//
|
||||
// checkBoxVavleSteamPID
|
||||
//
|
||||
this.checkBoxVavleSteamPID.AutoCheck = false;
|
||||
this.checkBoxVavleSteamPID.AutoSize = true;
|
||||
this.checkBoxVavleSteamPID.Location = new System.Drawing.Point(12, 125);
|
||||
this.checkBoxVavleSteamPID.Name = "checkBoxVavleSteamPID";
|
||||
this.checkBoxVavleSteamPID.Size = new System.Drawing.Size(160, 17);
|
||||
this.checkBoxVavleSteamPID.TabIndex = 2;
|
||||
this.checkBoxVavleSteamPID.Text = "Steam Active Process (PID):";
|
||||
this.checkBoxVavleSteamPID.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// txtBoxVavleSteamSmodPath
|
||||
//
|
||||
this.txtBoxVavleSteamSmodPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtBoxVavleSteamSmodPath.Location = new System.Drawing.Point(218, 149);
|
||||
this.txtBoxVavleSteamSmodPath.Name = "txtBoxVavleSteamSmodPath";
|
||||
this.txtBoxVavleSteamSmodPath.ReadOnly = true;
|
||||
this.txtBoxVavleSteamSmodPath.Size = new System.Drawing.Size(300, 20);
|
||||
this.txtBoxVavleSteamSmodPath.TabIndex = 1;
|
||||
//
|
||||
// txtBoxVavleSteamApps218
|
||||
//
|
||||
this.txtBoxVavleSteamApps218.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtBoxVavleSteamApps218.Location = new System.Drawing.Point(218, 247);
|
||||
this.txtBoxVavleSteamApps218.Name = "txtBoxVavleSteamApps218";
|
||||
this.txtBoxVavleSteamApps218.ReadOnly = true;
|
||||
this.txtBoxVavleSteamApps218.Size = new System.Drawing.Size(300, 20);
|
||||
this.txtBoxVavleSteamApps218.TabIndex = 1;
|
||||
//
|
||||
// txtBoxVavleSteamApps243730
|
||||
//
|
||||
this.txtBoxVavleSteamApps243730.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtBoxVavleSteamApps243730.Location = new System.Drawing.Point(218, 201);
|
||||
this.txtBoxVavleSteamApps243730.Name = "txtBoxVavleSteamApps243730";
|
||||
this.txtBoxVavleSteamApps243730.ReadOnly = true;
|
||||
this.txtBoxVavleSteamApps243730.Size = new System.Drawing.Size(300, 20);
|
||||
this.txtBoxVavleSteamApps243730.TabIndex = 1;
|
||||
//
|
||||
// checkBoxVavleSteamApps218
|
||||
//
|
||||
this.checkBoxVavleSteamApps218.AutoCheck = false;
|
||||
this.checkBoxVavleSteamApps218.AutoSize = true;
|
||||
this.checkBoxVavleSteamApps218.Location = new System.Drawing.Point(12, 249);
|
||||
this.checkBoxVavleSteamApps218.Name = "checkBoxVavleSteamApps218";
|
||||
this.checkBoxVavleSteamApps218.Size = new System.Drawing.Size(150, 17);
|
||||
this.checkBoxVavleSteamApps218.TabIndex = 0;
|
||||
this.checkBoxVavleSteamApps218.Text = "appID: 2018 (SSDK 2007)";
|
||||
this.checkBoxVavleSteamApps218.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxVavleSteamApps218Installed
|
||||
//
|
||||
this.checkBoxVavleSteamApps218Installed.AutoCheck = false;
|
||||
this.checkBoxVavleSteamApps218Installed.AutoSize = true;
|
||||
this.checkBoxVavleSteamApps218Installed.Location = new System.Drawing.Point(25, 272);
|
||||
this.checkBoxVavleSteamApps218Installed.Name = "checkBoxVavleSteamApps218Installed";
|
||||
this.checkBoxVavleSteamApps218Installed.Size = new System.Drawing.Size(65, 17);
|
||||
this.checkBoxVavleSteamApps218Installed.TabIndex = 0;
|
||||
this.checkBoxVavleSteamApps218Installed.Text = "Installed";
|
||||
this.checkBoxVavleSteamApps218Installed.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxVavleSteamApps243730Installed
|
||||
//
|
||||
this.checkBoxVavleSteamApps243730Installed.AutoCheck = false;
|
||||
this.checkBoxVavleSteamApps243730Installed.AutoSize = true;
|
||||
this.checkBoxVavleSteamApps243730Installed.Location = new System.Drawing.Point(25, 226);
|
||||
this.checkBoxVavleSteamApps243730Installed.Name = "checkBoxVavleSteamApps243730Installed";
|
||||
this.checkBoxVavleSteamApps243730Installed.Size = new System.Drawing.Size(65, 17);
|
||||
this.checkBoxVavleSteamApps243730Installed.TabIndex = 0;
|
||||
this.checkBoxVavleSteamApps243730Installed.Text = "Installed";
|
||||
this.checkBoxVavleSteamApps243730Installed.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxVavleSteamApps243730
|
||||
//
|
||||
this.checkBoxVavleSteamApps243730.AutoCheck = false;
|
||||
this.checkBoxVavleSteamApps243730.AutoSize = true;
|
||||
this.checkBoxVavleSteamApps243730.Location = new System.Drawing.Point(12, 203);
|
||||
this.checkBoxVavleSteamApps243730.Name = "checkBoxVavleSteamApps243730";
|
||||
this.checkBoxVavleSteamApps243730.Size = new System.Drawing.Size(179, 17);
|
||||
this.checkBoxVavleSteamApps243730.TabIndex = 0;
|
||||
this.checkBoxVavleSteamApps243730.Text = "appID: 243730 (SSDK 2013 SP)";
|
||||
this.checkBoxVavleSteamApps243730.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btnGetScreenShot
|
||||
//
|
||||
this.btnGetScreenShot.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnGetScreenShot.Location = new System.Drawing.Point(395, 387);
|
||||
this.btnGetScreenShot.Name = "btnGetScreenShot";
|
||||
this.btnGetScreenShot.Size = new System.Drawing.Size(147, 23);
|
||||
this.btnGetScreenShot.TabIndex = 4;
|
||||
this.btnGetScreenShot.Text = "Save Screenshot";
|
||||
this.btnGetScreenShot.UseVisualStyleBackColor = true;
|
||||
this.btnGetScreenShot.Click += new System.EventHandler(this.BtnGetScreenShot_Click);
|
||||
//
|
||||
// buttonreCheck
|
||||
//
|
||||
this.buttonreCheck.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.buttonreCheck.Location = new System.Drawing.Point(12, 387);
|
||||
this.buttonreCheck.Name = "buttonreCheck";
|
||||
this.buttonreCheck.Size = new System.Drawing.Size(147, 23);
|
||||
this.buttonreCheck.TabIndex = 5;
|
||||
this.buttonreCheck.Text = "Recheck";
|
||||
this.buttonreCheck.UseVisualStyleBackColor = true;
|
||||
this.buttonreCheck.Click += new System.EventHandler(this.ButtonreCheck_Click);
|
||||
//
|
||||
// checkBoxVavleSteamAppsCustomInstalled
|
||||
//
|
||||
this.checkBoxVavleSteamAppsCustomInstalled.AutoCheck = false;
|
||||
this.checkBoxVavleSteamAppsCustomInstalled.AutoSize = true;
|
||||
this.checkBoxVavleSteamAppsCustomInstalled.Location = new System.Drawing.Point(25, 341);
|
||||
this.checkBoxVavleSteamAppsCustomInstalled.Name = "checkBoxVavleSteamAppsCustomInstalled";
|
||||
this.checkBoxVavleSteamAppsCustomInstalled.Size = new System.Drawing.Size(65, 17);
|
||||
this.checkBoxVavleSteamAppsCustomInstalled.TabIndex = 0;
|
||||
this.checkBoxVavleSteamAppsCustomInstalled.Text = "Installed";
|
||||
this.checkBoxVavleSteamAppsCustomInstalled.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxVavleSteamAppsCustom
|
||||
//
|
||||
this.checkBoxVavleSteamAppsCustom.AutoCheck = false;
|
||||
this.checkBoxVavleSteamAppsCustom.AutoSize = true;
|
||||
this.checkBoxVavleSteamAppsCustom.Location = new System.Drawing.Point(12, 318);
|
||||
this.checkBoxVavleSteamAppsCustom.Name = "checkBoxVavleSteamAppsCustom";
|
||||
this.checkBoxVavleSteamAppsCustom.Size = new System.Drawing.Size(58, 17);
|
||||
this.checkBoxVavleSteamAppsCustom.TabIndex = 0;
|
||||
this.checkBoxVavleSteamAppsCustom.Text = "appID:";
|
||||
this.checkBoxVavleSteamAppsCustom.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// txtBoxVavleSteamAppsCustom
|
||||
//
|
||||
this.txtBoxVavleSteamAppsCustom.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtBoxVavleSteamAppsCustom.Location = new System.Drawing.Point(218, 316);
|
||||
this.txtBoxVavleSteamAppsCustom.Name = "txtBoxVavleSteamAppsCustom";
|
||||
this.txtBoxVavleSteamAppsCustom.ReadOnly = true;
|
||||
this.txtBoxVavleSteamAppsCustom.Size = new System.Drawing.Size(300, 20);
|
||||
this.txtBoxVavleSteamAppsCustom.TabIndex = 1;
|
||||
//
|
||||
// labelHR
|
||||
//
|
||||
this.labelHR.ForeColor = System.Drawing.SystemColors.ControlDark;
|
||||
this.labelHR.Location = new System.Drawing.Point(6, 292);
|
||||
this.labelHR.Name = "labelHR";
|
||||
this.labelHR.Size = new System.Drawing.Size(518, 23);
|
||||
this.labelHR.TabIndex = 3;
|
||||
this.labelHR.Text = "_________________________________________________________________________________" +
|
||||
"____________________";
|
||||
//
|
||||
// textBoxTestAppId
|
||||
//
|
||||
this.textBoxTestAppId.Location = new System.Drawing.Point(218, 341);
|
||||
this.textBoxTestAppId.Maximum = new decimal(new int[] {
|
||||
2147483647,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.textBoxTestAppId.Name = "textBoxTestAppId";
|
||||
this.textBoxTestAppId.Size = new System.Drawing.Size(300, 20);
|
||||
this.textBoxTestAppId.TabIndex = 7;
|
||||
//
|
||||
// FrmMain
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(554, 422);
|
||||
this.Controls.Add(this.buttonreCheck);
|
||||
this.Controls.Add(this.btnGetScreenShot);
|
||||
this.Controls.Add(this.groupBoxRegTest);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "FrmMain";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Steam Test Example";
|
||||
this.Load += new System.EventHandler(this.FrmMain_Load);
|
||||
this.groupBoxRegTest.ResumeLayout(false);
|
||||
this.groupBoxRegTest.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.textBoxTestAppId)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.CheckBox checkBoxVavleReg;
|
||||
private System.Windows.Forms.CheckBox checkBoxVavleSteamReg;
|
||||
private System.Windows.Forms.TextBox txtVavleReg;
|
||||
private System.Windows.Forms.TextBox txtVavleSteamReg;
|
||||
private System.Windows.Forms.CheckBox checkBoxVavleSteamExe;
|
||||
private System.Windows.Forms.CheckBox checkBoxVavleSteamSmodPath;
|
||||
private System.Windows.Forms.CheckBox checkBoxVavleSteamPath;
|
||||
private System.Windows.Forms.TextBox txtBoxVavleSteamPID;
|
||||
private System.Windows.Forms.TextBox txtBoxVavleSteamPath;
|
||||
private System.Windows.Forms.TextBox txtBoxVavleSteamExe;
|
||||
private System.Windows.Forms.CheckBox checkBoxVavleSteamApps;
|
||||
private System.Windows.Forms.TextBox txtBoxVavleSteamApps;
|
||||
private System.Windows.Forms.GroupBox groupBoxRegTest;
|
||||
private System.Windows.Forms.TextBox txtBoxVavleSteamApps243730;
|
||||
private System.Windows.Forms.CheckBox checkBoxVavleSteamApps243730;
|
||||
private System.Windows.Forms.CheckBox checkBoxVavleSteamPID;
|
||||
private System.Windows.Forms.TextBox txtBoxVavleSteamSmodPath;
|
||||
private System.Windows.Forms.Button btnGetScreenShot;
|
||||
private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog;
|
||||
private System.Windows.Forms.ToolTip toolTip;
|
||||
private System.Windows.Forms.Button buttonreCheck;
|
||||
private System.Windows.Forms.TextBox txtBoxVavleSteamApps218;
|
||||
private System.Windows.Forms.CheckBox checkBoxVavleSteamApps218;
|
||||
private System.Windows.Forms.CheckBox checkBoxVavleSteamApps218Installed;
|
||||
private System.Windows.Forms.CheckBox checkBoxVavleSteamApps243730Installed;
|
||||
private System.Windows.Forms.TextBox txtBoxVavleSteamAppsCustom;
|
||||
private System.Windows.Forms.CheckBox checkBoxVavleSteamAppsCustom;
|
||||
private System.Windows.Forms.CheckBox checkBoxVavleSteamAppsCustomInstalled;
|
||||
private System.Windows.Forms.Label labelHR;
|
||||
private System.Windows.Forms.NumericUpDown textBoxTestAppId;
|
||||
}
|
||||
}
|
||||
|
314
src/SteamTest/FrmMain.cs
Normal file
314
src/SteamTest/FrmMain.cs
Normal file
@ -0,0 +1,314 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using System.Drawing.Imaging;
|
||||
using EpicMorg.SteamPathsLib;
|
||||
using System.Reflection;
|
||||
|
||||
namespace SteamTest
|
||||
{
|
||||
public partial class FrmMain : Form
|
||||
{
|
||||
|
||||
public static readonly int SOURCE_SDK_BASE_2007_APP_ID = 218;
|
||||
public static readonly int SOURCE_SDK_BASE_2013_SINGLEPLAYER_APP_ID = 243730;
|
||||
|
||||
private void Screenshot(string filepath, string filename, ImageFormat format)
|
||||
{
|
||||
var bounds = Bounds;
|
||||
|
||||
using (var bitmap = new Bitmap(bounds.Width, bounds.Height))
|
||||
{
|
||||
using (var g = Graphics.FromImage(bitmap))
|
||||
{
|
||||
g.CopyFromScreen(new Point(bounds.Left, bounds.Top), Point.Empty, bounds.Size);
|
||||
}
|
||||
var fullpaths = filepath + "\\" + filename;
|
||||
bitmap.Save(fullpaths, format);
|
||||
}
|
||||
}
|
||||
|
||||
public FrmMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
textBoxTestAppId.Value = (decimal)SOURCE_SDK_BASE_2013_SINGLEPLAYER_APP_ID;
|
||||
this.Text = Text + " " + Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||
; }
|
||||
|
||||
private void FrmMain_Load(object sender, EventArgs e)
|
||||
{
|
||||
CheckAll();
|
||||
}
|
||||
|
||||
private void ButtonreCheck_Click(object sender, EventArgs e)
|
||||
{
|
||||
CheckAll();
|
||||
}
|
||||
|
||||
private void CheckAll()
|
||||
{
|
||||
CheckRegValveReg();
|
||||
CheckRegValveSteamReg();
|
||||
CheckRegValveSteamApps();
|
||||
CheckRegValveSteamExe();
|
||||
CheckRegValveSteamExePid();
|
||||
CheckRegValveSteamPath();
|
||||
CheckRegValveSteamSmodPath();
|
||||
CheckRegValveSteamApp240();
|
||||
CheckRegValveSteamApp218();
|
||||
CheckRegValveSteamAppCustom();
|
||||
}
|
||||
|
||||
private void CheckRegValveReg()
|
||||
{
|
||||
try
|
||||
{
|
||||
// Example of using this awesome library
|
||||
var text = SteamPathsUtil.GetValveKeyRegistry();
|
||||
|
||||
checkBoxVavleReg.Checked = true;
|
||||
checkBoxVavleReg.ForeColor = Color.Green;
|
||||
txtVavleReg.Text = text;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
checkBoxVavleReg.Checked = checkBoxVavleSteamReg.Checked = false;
|
||||
checkBoxVavleReg.ForeColor = checkBoxVavleSteamReg.ForeColor = Color.Red;
|
||||
txtVavleReg.Text = @"Not found";
|
||||
Console.WriteLine(ex);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void CheckRegValveSteamReg()
|
||||
{
|
||||
try
|
||||
{
|
||||
// Example of using this awesome library
|
||||
var text = SteamPathsUtil.GetSteamKeyRegistry();
|
||||
|
||||
checkBoxVavleSteamReg.Checked = true;
|
||||
checkBoxVavleSteamReg.ForeColor = Color.Green;
|
||||
txtVavleSteamReg.Text = text;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
checkBoxVavleSteamReg.Checked = checkBoxVavleSteamReg.Checked = false;
|
||||
checkBoxVavleSteamReg.ForeColor = checkBoxVavleSteamReg.ForeColor = Color.Red;
|
||||
txtVavleSteamReg.Text = @"Not found";
|
||||
Console.WriteLine(ex);
|
||||
}
|
||||
}
|
||||
|
||||
private void CheckRegValveSteamApps()
|
||||
{
|
||||
|
||||
try
|
||||
{
|
||||
// Example of using this awesome library
|
||||
var text = SteamPathsUtil.GetSteamAppsKeyRegistry();
|
||||
|
||||
checkBoxVavleSteamApps.Checked = true;
|
||||
checkBoxVavleSteamApps.ForeColor = Color.Green;
|
||||
txtBoxVavleSteamApps.Text = text;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
checkBoxVavleSteamApps.Checked = checkBoxVavleSteamApps.Checked = false;
|
||||
checkBoxVavleSteamApps.ForeColor = checkBoxVavleSteamApps.ForeColor = Color.Red;
|
||||
txtBoxVavleSteamApps.Text = @"Not found";
|
||||
Console.WriteLine(ex);
|
||||
}
|
||||
}
|
||||
|
||||
private void CheckRegValveSteamExe()
|
||||
{
|
||||
try
|
||||
{
|
||||
// Example of using this awesome library
|
||||
var text = SteamPathsUtil.GetSteamExePath();
|
||||
|
||||
checkBoxVavleSteamExe.Checked = true;
|
||||
checkBoxVavleSteamExe.ForeColor = Color.Green;
|
||||
checkBoxVavleSteamExe.CheckState = CheckState.Checked;
|
||||
txtBoxVavleSteamExe.Text = text;
|
||||
|
||||
if (txtBoxVavleSteamExe.Text == @"")
|
||||
{
|
||||
checkBoxVavleSteamExe.ForeColor = Color.OrangeRed;
|
||||
checkBoxVavleSteamExe.CheckState = CheckState.Indeterminate;
|
||||
toolTip.SetToolTip(checkBoxVavleSteamExe, "SteamPath is presented but empty");
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
checkBoxVavleSteamExe.Checked = checkBoxVavleSteamExe.Checked = false;
|
||||
checkBoxVavleSteamExe.ForeColor = checkBoxVavleSteamExe.ForeColor = Color.Red;
|
||||
checkBoxVavleSteamExe.CheckState = CheckState.Unchecked;
|
||||
txtBoxVavleSteamExe.Text = @"Not found";
|
||||
Console.WriteLine(ex);
|
||||
}
|
||||
}
|
||||
|
||||
private void CheckRegValveSteamExePid()
|
||||
{
|
||||
try
|
||||
{
|
||||
// Example of using this awesome library
|
||||
var text = SteamPathsUtil.GetSteamExePid();
|
||||
|
||||
checkBoxVavleSteamPID.Checked = true;
|
||||
checkBoxVavleSteamPID.ForeColor = Color.Green;
|
||||
checkBoxVavleSteamPID.CheckState = CheckState.Checked;
|
||||
txtBoxVavleSteamPID.Text = text;
|
||||
|
||||
if (txtBoxVavleSteamPID.Text == @"0")
|
||||
{
|
||||
checkBoxVavleSteamPID.ForeColor = Color.OrangeRed;
|
||||
checkBoxVavleSteamPID.CheckState = CheckState.Indeterminate;
|
||||
toolTip.SetToolTip(checkBoxVavleSteamPID, "Steam installed but not running");
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
checkBoxVavleSteamPID.Checked = checkBoxVavleSteamPID.Checked = false;
|
||||
checkBoxVavleSteamPID.ForeColor = checkBoxVavleSteamPID.ForeColor = Color.Red;
|
||||
checkBoxVavleSteamPath.CheckState = CheckState.Unchecked;
|
||||
txtBoxVavleSteamPID.Text = @"Not found";
|
||||
Console.WriteLine(ex);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void CheckRegValveSteamPath()
|
||||
{
|
||||
try
|
||||
{
|
||||
// Example of using this awesome library
|
||||
var text = SteamPathsUtil.GetSteamDirectoryPath();
|
||||
|
||||
checkBoxVavleSteamPath.Checked = true;
|
||||
checkBoxVavleSteamPath.ForeColor = Color.Green;
|
||||
checkBoxVavleSteamPath.CheckState = CheckState.Checked;
|
||||
txtBoxVavleSteamPath.Text = text;
|
||||
|
||||
if (txtBoxVavleSteamPath.Text == @"")
|
||||
{
|
||||
checkBoxVavleSteamPath.ForeColor = Color.OrangeRed;
|
||||
checkBoxVavleSteamPath.CheckState = CheckState.Indeterminate;
|
||||
toolTip.SetToolTip(checkBoxVavleSteamPath, "SteamPath is presented but empty");
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
checkBoxVavleSteamPath.Checked = checkBoxVavleSteamPath.Checked = false;
|
||||
checkBoxVavleSteamPath.ForeColor = checkBoxVavleSteamPath.ForeColor = Color.Red;
|
||||
checkBoxVavleSteamPath.CheckState = CheckState.Unchecked;
|
||||
txtBoxVavleSteamPath.Text = @"Not found";
|
||||
Console.WriteLine(ex);
|
||||
}
|
||||
}
|
||||
|
||||
private void CheckRegValveSteamSmodPath()
|
||||
{
|
||||
try
|
||||
{
|
||||
// Example of using this awesome library
|
||||
var text = SteamPathsUtil.GetOriginalSourceModDirectoryPath();
|
||||
|
||||
checkBoxVavleSteamSmodPath.Checked = true;
|
||||
checkBoxVavleSteamSmodPath.ForeColor = Color.Green;
|
||||
checkBoxVavleSteamSmodPath.CheckState = CheckState.Checked;
|
||||
txtBoxVavleSteamSmodPath.Text = text;
|
||||
|
||||
if (txtBoxVavleSteamSmodPath.Text == @"")
|
||||
{
|
||||
checkBoxVavleSteamSmodPath.ForeColor = Color.OrangeRed;
|
||||
checkBoxVavleSteamSmodPath.CheckState = CheckState.Indeterminate;
|
||||
toolTip.SetToolTip(checkBoxVavleSteamSmodPath, "SourceModInstallPath is presented but empty!");
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
checkBoxVavleSteamSmodPath.Checked = checkBoxVavleSteamSmodPath.Checked = false;
|
||||
checkBoxVavleSteamSmodPath.ForeColor = checkBoxVavleSteamSmodPath.ForeColor = Color.Red;
|
||||
checkBoxVavleSteamSmodPath.CheckState = CheckState.Unchecked;
|
||||
txtBoxVavleSteamSmodPath.Text = @"Not found";
|
||||
Console.WriteLine(ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void CheckRegValveSteamApp240()
|
||||
{
|
||||
CheckSteamAppById(SOURCE_SDK_BASE_2013_SINGLEPLAYER_APP_ID, txtBoxVavleSteamApps243730, checkBoxVavleSteamApps243730, checkBoxVavleSteamApps243730Installed);
|
||||
}
|
||||
|
||||
private void CheckRegValveSteamApp218()
|
||||
{
|
||||
CheckSteamAppById(SOURCE_SDK_BASE_2007_APP_ID, txtBoxVavleSteamApps218, checkBoxVavleSteamApps218, checkBoxVavleSteamApps218Installed);
|
||||
}
|
||||
|
||||
private void CheckRegValveSteamAppCustom()
|
||||
{
|
||||
var appId = Decimal.ToInt32(textBoxTestAppId.Value);
|
||||
|
||||
CheckSteamAppById(appId, txtBoxVavleSteamAppsCustom, checkBoxVavleSteamAppsCustom, checkBoxVavleSteamAppsCustomInstalled);
|
||||
}
|
||||
|
||||
private void CheckSteamAppById(int appId, TextBox outputTextBox, CheckBox outputCheckBox, CheckBox outputInstalledCheckBox)
|
||||
{
|
||||
var check = SteamPathsUtil.IsInstalledApps(appId);
|
||||
var path = SteamPathsUtil.GetInstalledAppKeyRegistryById(appId);
|
||||
|
||||
outputTextBox.Text = path;
|
||||
|
||||
if (check)
|
||||
{
|
||||
outputCheckBox.Checked = true;
|
||||
outputCheckBox.ForeColor = Color.Green;
|
||||
|
||||
outputInstalledCheckBox.Checked = true;
|
||||
outputInstalledCheckBox.ForeColor = Color.Green;
|
||||
outputInstalledCheckBox.Text = "Installed: " + appId;
|
||||
}
|
||||
else
|
||||
{
|
||||
outputCheckBox.Checked = false;
|
||||
outputCheckBox.ForeColor = Color.Red;
|
||||
|
||||
outputInstalledCheckBox.Checked = false;
|
||||
outputInstalledCheckBox.ForeColor = Color.Red;
|
||||
outputInstalledCheckBox.Text = "Installed: " + appId;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void BtnGetScreenShot_Click(object sender, EventArgs e)
|
||||
{
|
||||
folderBrowserDialog.ShowDialog();
|
||||
var desktopFolder = folderBrowserDialog.SelectedPath;
|
||||
try
|
||||
{
|
||||
Screenshot(desktopFolder, "SteamTest.Png", ImageFormat.Png);
|
||||
MessageBox.Show(@"Success! Saved to selected path" + Environment.NewLine + desktopFolder, @"Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
catch
|
||||
{
|
||||
MessageBox.Show(@"Not success. Can not save to selected path" + Environment.NewLine + desktopFolder, @"Not success", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void textBoxTestAppId_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
checkBoxVavleSteamAppsCustom.Text = "appID: " + textBoxTestAppId.Text;
|
||||
}
|
||||
}
|
||||
}
|
1907
src/SteamTest/FrmMain.resx
Normal file
1907
src/SteamTest/FrmMain.resx
Normal file
File diff suppressed because it is too large
Load Diff
22
src/SteamTest/Program.cs
Normal file
22
src/SteamTest/Program.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace SteamTest
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new FrmMain());
|
||||
}
|
||||
}
|
||||
}
|
36
src/SteamTest/Properties/AssemblyInfo.cs
Normal file
36
src/SteamTest/Properties/AssemblyInfo.cs
Normal file
@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Steam Test Example")]
|
||||
[assembly: AssemblyDescription("SteamPathLibrary example")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("EpicMorg")]
|
||||
[assembly: AssemblyProduct("Steam Test Example")]
|
||||
[assembly: AssemblyCopyright("Copyright © EpicMorg 2020")]
|
||||
[assembly: AssemblyTrademark("Valve")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("5bb35a56-be06-495b-bcf8-7bd484e3d03a")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.2")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.2")]
|
73
src/SteamTest/Properties/Resources.Designer.cs
generated
Normal file
73
src/SteamTest/Properties/Resources.Designer.cs
generated
Normal file
@ -0,0 +1,73 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace SteamTest.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SteamTest.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap steam {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("steam", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
124
src/SteamTest/Properties/Resources.resx
Normal file
124
src/SteamTest/Properties/Resources.resx
Normal file
@ -0,0 +1,124 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="steam" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\steam.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
26
src/SteamTest/Properties/Settings.Designer.cs
generated
Normal file
26
src/SteamTest/Properties/Settings.Designer.cs
generated
Normal file
@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace SteamTest.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.3.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
7
src/SteamTest/Properties/Settings.settings
Normal file
7
src/SteamTest/Properties/Settings.settings
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
BIN
src/SteamTest/Resources/steam.png
Normal file
BIN
src/SteamTest/Resources/steam.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
164
src/SteamTest/SteamTest.csproj
Normal file
164
src/SteamTest/SteamTest.csproj
Normal file
@ -0,0 +1,164 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{5BB35A56-BE06-495B-BCF8-7BD484E3D03A}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>SteamTest</RootNamespace>
|
||||
<AssemblyName>SteamTest</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<TargetFrameworkProfile />
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>steam.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||
<OutputPath>bin\x64\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="FrmMain.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmMain.Designer.cs">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="FrmMain.resx">
|
||||
<DependentUpon>FrmMain.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\steam.png" />
|
||||
<Content Include="steam.ico" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include=".NETFramework,Version=v4.8">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Microsoft .NET Framework 4.8 %28x86 и x64%29</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\EpicMorg.SteamPathsLib\EpicMorg.SteamPathsLib.csproj">
|
||||
<Project>{e34ae985-7c7e-49ba-a2b0-70d88f865265}</Project>
|
||||
<Name>EpicMorg.SteamPathsLib</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
BIN
src/SteamTest/steam.ico
Normal file
BIN
src/SteamTest/steam.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 104 KiB |
Loading…
x
Reference in New Issue
Block a user