mirror of
https://github.com/EpicMorg/SteamPathsLib.git
synced 2025-04-20 16:02:31 +03:00
Compare commits
59 Commits
Author | SHA1 | Date | |
---|---|---|---|
bccd9b1bec | |||
4bc5e0cf38 | |||
d3d7aba0e8 | |||
08b0736521 | |||
fd3cf4fa22 | |||
44c8097599 | |||
5f9e2a0542 | |||
0eded93505 | |||
57655e7744 | |||
|
428ba714e6 | ||
|
1daa6bb5ad | ||
|
df130b7ead | ||
|
ac26ae83e9 | ||
|
3aa8aec61e | ||
|
3957f87103 | ||
55f2c00ee7 | |||
614275b3be | |||
7db191cf39 | |||
|
18f13665cb | ||
|
5006877670 | ||
1149709d03 | |||
e9dc3f0c72 | |||
16878cbb32 | |||
0c6f564692 | |||
|
08659b463b | ||
e33f0b6d12 | |||
8ae229d997 | |||
e039d0a12b | |||
9350e8904d | |||
710d9f05a2 | |||
6e0c391d4d | |||
bcdb7e9c38 | |||
78788c7db8 | |||
cd2e69bf91 | |||
5351f1e20a | |||
|
e60a695b83 | ||
9b2de02338 | |||
93bf62ddaf | |||
d34d4798e8 | |||
5b96bcc6a3 | |||
45900b2544 | |||
cf696e67cf | |||
|
f0efdca7ee | ||
8933571757 | |||
76dd6f8344 | |||
04ac4e201d | |||
3a455fe758 | |||
83836f2a6b | |||
de2d842720 | |||
|
fac2237a46 | ||
|
badcd62897 | ||
a25fe94ea6 | |||
abbbec8678 | |||
|
5d56f7df6b | ||
|
85373aafd7 | ||
|
961f77b349 | ||
|
4e86097f1d | ||
|
f202e4a816 | ||
|
914037302d |
13
.github/FUNDING.yml
vendored
Normal file
13
.github/FUNDING.yml
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# These are supported funding model platforms
|
||||||
|
patreon: epicmorg
|
||||||
|
ko_fi: epicmorg
|
||||||
|
custom: https://ko-fi.com/alexz696
|
||||||
|
|
||||||
|
#github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
||||||
|
#open_collective: # Replace with a single Open Collective username
|
||||||
|
#tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||||
|
#community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||||
|
#liberapay: # Replace with a single Liberapay username
|
||||||
|
#issuehunt: # Replace with a single IssueHunt username
|
||||||
|
#otechie: # Replace with a single Otechie username
|
||||||
|
#custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
9
.github/dependabot.yml
vendored
Normal file
9
.github/dependabot.yml
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: nuget
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: daily
|
||||||
|
time: "02:00"
|
||||||
|
open-pull-requests-limit: 10
|
||||||
|
target-branch: "develop"
|
40
.github/workflows/develop.yml
vendored
Normal file
40
.github/workflows/develop.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
name: SteamPathsLib - develop
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ develop ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Set the value
|
||||||
|
run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@master
|
||||||
|
with:
|
||||||
|
clean: true
|
||||||
|
fetch-depth: 0
|
||||||
|
lfs: true
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
- name: Add msbuild to PATH
|
||||||
|
uses: microsoft/setup-msbuild@v1.1
|
||||||
|
with:
|
||||||
|
vs-prerelease: true
|
||||||
|
msbuild-architecture: x86
|
||||||
|
|
||||||
|
- name: Setup NuGet
|
||||||
|
uses: NuGet/setup-nuget@v1
|
||||||
|
|
||||||
|
- name: Restore NuGet Packages
|
||||||
|
run: nuget restore src/EpicMorg.SteamPathsSolution.sln
|
||||||
|
|
||||||
|
- name: Build Debug
|
||||||
|
run: msbuild src/EpicMorg.SteamPathsSolution.sln /p:Configuration=Debug
|
40
.github/workflows/master.yml
vendored
Normal file
40
.github/workflows/master.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
name: SteamPathsLib - master
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Set the value
|
||||||
|
run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@master
|
||||||
|
with:
|
||||||
|
clean: true
|
||||||
|
fetch-depth: 0
|
||||||
|
lfs: true
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
- name: Add msbuild to PATH
|
||||||
|
uses: microsoft/setup-msbuild@v1.1
|
||||||
|
with:
|
||||||
|
vs-prerelease: true
|
||||||
|
msbuild-architecture: x86
|
||||||
|
|
||||||
|
- name: Setup NuGet
|
||||||
|
uses: NuGet/setup-nuget@v1
|
||||||
|
|
||||||
|
- name: Restore NuGet Packages
|
||||||
|
run: nuget restore src/EpicMorg.SteamPathsSolution.sln
|
||||||
|
|
||||||
|
- name: Build Release
|
||||||
|
run: msbuild src/EpicMorg.SteamPathsSolution.sln /p:Configuration=Release
|
43
.github/workflows/pr.yml
vendored
Normal file
43
.github/workflows/pr.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
name: SteamPathsLib - pull request to master
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Set the value
|
||||||
|
run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@master
|
||||||
|
with:
|
||||||
|
clean: true
|
||||||
|
fetch-depth: 0
|
||||||
|
lfs: true
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
- name: Add msbuild to PATH
|
||||||
|
uses: microsoft/setup-msbuild@v1.1
|
||||||
|
with:
|
||||||
|
vs-prerelease: true
|
||||||
|
msbuild-architecture: x86
|
||||||
|
|
||||||
|
- name: Setup NuGet
|
||||||
|
uses: NuGet/setup-nuget@v1
|
||||||
|
|
||||||
|
- name: Restore NuGet Packages
|
||||||
|
run: nuget restore src/EpicMorg.SteamPathsSolution.sln
|
||||||
|
|
||||||
|
- name: Build Debug
|
||||||
|
run: msbuild src/EpicMorg.SteamPathsSolution.sln /p:Configuration=Debug
|
||||||
|
|
||||||
|
- name: Build Release
|
||||||
|
run: msbuild src/EpicMorg.SteamPathsSolution.sln /p:Configuration=Release
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -92,6 +92,7 @@ StyleCopReport.xml
|
|||||||
*.pidb
|
*.pidb
|
||||||
*.svclog
|
*.svclog
|
||||||
*.scc
|
*.scc
|
||||||
|
*.dll
|
||||||
|
|
||||||
# Chutzpah Test files
|
# Chutzpah Test files
|
||||||
_Chutzpah*
|
_Chutzpah*
|
||||||
|
13
.travis.yml
13
.travis.yml
@ -1,13 +0,0 @@
|
|||||||
os: windows
|
|
||||||
language: csharp
|
|
||||||
solution: src\SteamPathsLib.sln
|
|
||||||
services:
|
|
||||||
- nuget
|
|
||||||
install:
|
|
||||||
- nuget restore src\SteamPathsLib.sln
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- name: Library Build
|
|
||||||
script:
|
|
||||||
- msbuild /p:Configuration=Release src\SteamPathsLib.sln
|
|
||||||
|
|
13
CHANGELOG.md
13
CHANGELOG.md
@ -1 +1,12 @@
|
|||||||
|
* `1.0.0.0` - Initial release
|
||||||
|
* `1.1.0.0` Whats new:
|
||||||
|
* Refractoring API
|
||||||
|
* Added new info about steam and steam application
|
||||||
|
* `1.1.0.1` Whats new:
|
||||||
|
* Add info directly from Steam
|
||||||
|
* `1.1.0.2` Whats new:
|
||||||
|
* Fixed catching exceptions
|
||||||
|
* `1.1.0.3` Whats new:
|
||||||
|
* Fixed loading appmanifest data if we have an invalid *.acf.
|
||||||
|
* `1.1.0.4` Whats new:
|
||||||
|
* Code review and optimizations, dotNetCore support
|
26
README.md
26
README.md
@ -1,3 +1,27 @@
|
|||||||
# SteamPathsLib
|
# SteamPathsLib
|
||||||
|
|
||||||
# [](https://travis-ci.org/EpicMorg/SteamPathsLib) [](https://github.com/EpicMorg/SteamPathsLib/issues) [](https://github.com/EpicMorg/SteamPathsLib/network) [](https://github.com/EpicMorg/SteamPathsLib/stargazers) [](LICENSE.md) [](CHANGELOG.md)
|
# [](https://ci.appveyor.com/project/stamepicmorg/steampathslib) [](https://www.nuget.org/packages/EpicMorg.SteamPathsLib/) [](https://github.com/EpicMorg/SteamPathsLib/archive/master.zip) [](https://github.com/EpicMorg/SteamPathsLib/releases) [](LICENSE.md) [](CHANGELOG.md) [](https://github.com/EpicMorg/SteamPathsLib/commits) [](https://github.com/EpicMorg/SteamPathsLib/issues) [](https://github.com/EpicMorg/SteamPathsLib/network) [](https://github.com/EpicMorg/SteamPathsLib/stargazers) [](https://github.com/EpicMorg/SteamPathsLib/pulse) [](https://codescene.io/projects/6853) [](https://codescene.io/projects/6853)
|
||||||
|
|
||||||
|
[](https://codescene.io/projects/6853/jobs/latest-successful/results)
|
||||||
|
|
||||||
|
# Usage
|
||||||
|
|
||||||
|
* Look at [example project](https://github.com/EpicMorg/SteamPathsLib/blob/master/src/SteamTest/FrmMain.cs)
|
||||||
|
* Look at [sources](https://github.com/EpicMorg/SteamPathsLib/blob/master/src/EpicMorg.SteamPathsLib/SteamPathsUtil.cs)
|
||||||
|
* Create issue for request docs ;P
|
||||||
|
|
||||||
|
``` csharp
|
||||||
|
|
||||||
|
|
||||||
|
using EpicMorg.SteamPathsLib;
|
||||||
|
|
||||||
|
<...>
|
||||||
|
SteamPathsUtil.GetValveKeyRegistry();
|
||||||
|
<...>
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
# Example
|
||||||
|
|
||||||
|

|
||||||
|
BIN
SteamTest.Png
Normal file
BIN
SteamTest.Png
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
@ -1,54 +1,39 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<Project Sdk="Microsoft.Net.Sdk">
|
||||||
<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>{E34AE985-7C7E-49BA-A2B0-70D88F865265}</ProjectGuid>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>EpicMorg.SteamPathsLib</RootNamespace>
|
|
||||||
<AssemblyName>EpicMorg.SteamPathsLib</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
<Deterministic>true</Deterministic>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<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' ">
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ApplicationIcon>steam.ico</ApplicationIcon>
|
<ApplicationIcon>steam.ico</ApplicationIcon>
|
||||||
|
<TargetFrameworks>net46;net461;net462;net47;net471;net472;net48;netstandard1.3;netcoreapp3.1</TargetFrameworks>
|
||||||
|
<Company>EpicMorg</Company>
|
||||||
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
|
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
|
||||||
|
<RepositoryUrl>https://github.com/EpicMorg/SteamPathsLib</RepositoryUrl>
|
||||||
|
<PackageIcon>steam.png</PackageIcon>
|
||||||
|
<PackageProjectUrl>https://github.com/EpicMorg/SteamPathsLib</PackageProjectUrl>
|
||||||
|
<Copyright>Copyright © EpicMorg 2020</Copyright>
|
||||||
|
<AssemblyVersion>1.1.0.6</AssemblyVersion>
|
||||||
|
<FileVersion>1.1.0.6</FileVersion>
|
||||||
|
<Version>1.1.0.6</Version>
|
||||||
|
<Description>Small helper for getting some registry keys of Steam.</Description>
|
||||||
|
<SignAssembly>False</SignAssembly>
|
||||||
|
<Authors>EpicMorgDev, AurZum, stam, kasthack</Authors>
|
||||||
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||||
|
<RepositoryType>git</RepositoryType>
|
||||||
|
<PackageTags>steam epicmorg registry path helper vdf</PackageTags>
|
||||||
|
<PackageReleaseNotes>Some of fixes</PackageReleaseNotes>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<None Include="steam.png">
|
||||||
<Reference Include="System.Core" />
|
<Pack>True</Pack>
|
||||||
<Reference Include="System.Xml.Linq" />
|
<PackagePath></PackagePath>
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
</None>
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
|
||||||
<Reference Include="System.Data" />
|
<PackageReference Include="Gameloop.Vdf" Version="0.6.2" />
|
||||||
<Reference Include="System.Net.Http" />
|
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||||
<Reference Include="System.Xml" />
|
<None Include="steam.ico">
|
||||||
|
<Pack>True</Pack>
|
||||||
|
</None>
|
||||||
|
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.164">
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
||||||
|
</PackageReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="SteamPathsUtil.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Content Include="steam.ico" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
</Project>
|
</Project>
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace EpicMorg.SteamPathsLib.Model
|
||||||
|
{
|
||||||
|
public class ActiveProcessSteamRegistryData
|
||||||
|
{
|
||||||
|
public string RegistryKey { get; set; }
|
||||||
|
|
||||||
|
public int PID { get; set; }
|
||||||
|
}
|
||||||
|
}
|
7
src/EpicMorg.SteamPathsLib/Model/ConfigSteamData.cs
Normal file
7
src/EpicMorg.SteamPathsLib/Model/ConfigSteamData.cs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
namespace EpicMorg.SteamPathsLib.Model
|
||||||
|
{
|
||||||
|
public class ConfigSteamData
|
||||||
|
{
|
||||||
|
public string[] SteamLibraryFolders { get; set; }
|
||||||
|
}
|
||||||
|
}
|
11
src/EpicMorg.SteamPathsLib/Model/LibrarySteamData.cs
Normal file
11
src/EpicMorg.SteamPathsLib/Model/LibrarySteamData.cs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
namespace EpicMorg.SteamPathsLib.Model
|
||||||
|
{
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
public class LibrarySteamData
|
||||||
|
{
|
||||||
|
public List<SteamAppManifestData> AppManifestDataList { get; set; }
|
||||||
|
|
||||||
|
public string Path { get; set; }
|
||||||
|
}
|
||||||
|
}
|
13
src/EpicMorg.SteamPathsLib/Model/SteamAppManifestData.cs
Normal file
13
src/EpicMorg.SteamPathsLib/Model/SteamAppManifestData.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
namespace EpicMorg.SteamPathsLib.Model
|
||||||
|
{
|
||||||
|
public class SteamAppManifestData
|
||||||
|
{
|
||||||
|
public int AppId { get; set; }
|
||||||
|
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
public string InstallDir { get; set; }
|
||||||
|
|
||||||
|
public string Path { get; set; }
|
||||||
|
}
|
||||||
|
}
|
17
src/EpicMorg.SteamPathsLib/Model/SteamAppRegistryData.cs
Normal file
17
src/EpicMorg.SteamPathsLib/Model/SteamAppRegistryData.cs
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
namespace EpicMorg.SteamPathsLib.Model
|
||||||
|
{
|
||||||
|
public class SteamAppRegistryData
|
||||||
|
{
|
||||||
|
public bool Installed { get; set; }
|
||||||
|
|
||||||
|
public bool Running { get; set; }
|
||||||
|
|
||||||
|
public bool Updating { get; set; }
|
||||||
|
|
||||||
|
public int AppId { get; set; }
|
||||||
|
|
||||||
|
public string Name { get; set; }
|
||||||
|
|
||||||
|
public string RegistryKey { get; set; }
|
||||||
|
}
|
||||||
|
}
|
27
src/EpicMorg.SteamPathsLib/Model/SteamRegistryData.cs
Normal file
27
src/EpicMorg.SteamPathsLib/Model/SteamRegistryData.cs
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
namespace EpicMorg.SteamPathsLib.Model
|
||||||
|
{
|
||||||
|
public class SteamRegistryData
|
||||||
|
{
|
||||||
|
public string RegistryKey { get; set; }
|
||||||
|
|
||||||
|
public string LastGameNameUsed { get; set; }
|
||||||
|
|
||||||
|
public string SourceModInstallPath { get; set; }
|
||||||
|
|
||||||
|
public string SteamExe { get; set; }
|
||||||
|
|
||||||
|
public string SteamPath { get; set; }
|
||||||
|
|
||||||
|
public string Language { get; set; }
|
||||||
|
|
||||||
|
public string PseudoUUID { get; set; }
|
||||||
|
|
||||||
|
public string ModInstallPath { get; set; }
|
||||||
|
|
||||||
|
public int RunningAppID { get; set; }
|
||||||
|
|
||||||
|
public bool AlreadyRetriedOfflineMode { get; set; }
|
||||||
|
|
||||||
|
public bool RememberPassword { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -1,36 +0,0 @@
|
|||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// Общие сведения об этой сборке предоставляются следующим набором
|
|
||||||
// набора атрибутов. Измените значения этих атрибутов для изменения сведений,
|
|
||||||
// связанные со сборкой.
|
|
||||||
[assembly: AssemblyTitle("EpicMorg.SteamPathsLib")]
|
|
||||||
[assembly: AssemblyDescription("Steam Paths Library")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("EpicMorg")]
|
|
||||||
[assembly: AssemblyProduct("EpicMorg.SteamPathsLib")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © EpicMorg 2020")]
|
|
||||||
[assembly: AssemblyTrademark("Valve")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
|
|
||||||
// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
|
|
||||||
// COM, задайте атрибуту ComVisible значение TRUE для этого типа.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM
|
|
||||||
[assembly: Guid("e34ae985-7c7e-49ba-a2b0-70d88f865265")]
|
|
||||||
|
|
||||||
// Сведения о версии сборки состоят из указанных ниже четырех значений:
|
|
||||||
//
|
|
||||||
// Основной номер версии
|
|
||||||
// Дополнительный номер версии
|
|
||||||
// Номер сборки
|
|
||||||
// Редакция
|
|
||||||
//
|
|
||||||
// Можно задать все значения или принять номера сборки и редакции по умолчанию
|
|
||||||
// используя "*", как показано ниже:
|
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
@ -1,172 +1,183 @@
|
|||||||
using System;
|
namespace EpicMorg.SteamPathsLib
|
||||||
using System.Collections.Generic;
|
|
||||||
using Microsoft.Win32;
|
|
||||||
|
|
||||||
namespace EpicMorg.SteamPathsLib
|
|
||||||
{
|
{
|
||||||
public class SteamPathsUtil
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using EpicMorg.SteamPathsLib.Model;
|
||||||
|
using Gameloop.Vdf;
|
||||||
|
using Gameloop.Vdf.Linq;
|
||||||
|
using Microsoft.Win32;
|
||||||
|
|
||||||
|
public static class SteamPathsUtil
|
||||||
{
|
{
|
||||||
private static readonly string _valveKey = @"Software\Valve";
|
private const string ValveKey = @"Software\Valve";
|
||||||
private static readonly string _valveSteamKey = @"Software\Valve\Steam";
|
private const string ValveSteamKey = @"Software\Valve\Steam";
|
||||||
private static readonly string _valveSteamAppsKey = @"Software\Valve\Steam\Apps";
|
private const string ValveSteamAppsKey = @"Software\Valve\Steam\Apps";
|
||||||
private static readonly string _valveActiveProcessPID = @"Software\Valve\Steam\ActiveProcess";
|
private const string ValveActiveProcessPID = @"Software\Valve\Steam\ActiveProcess";
|
||||||
|
|
||||||
private static readonly string _valveSteamAppsPattern = @"Software\Valve\Steam\Apps\";
|
private const string ValveSteamAppsPattern = @"Software\Valve\Steam\Apps\";
|
||||||
|
|
||||||
public static Dictionary<string, string> GetInfo()
|
public static string GetValveKeyRegistry() => TryOrDefault(() => Registry.CurrentUser.OpenSubKey(ValveKey).ToString());
|
||||||
|
|
||||||
|
public static string GetSteamAppsKeyRegistry() => TryOrDefault(() => Registry.CurrentUser.OpenSubKey(ValveSteamAppsKey).ToString());
|
||||||
|
|
||||||
|
public static ActiveProcessSteamRegistryData GetActiveProcessSteamData() => TryOrDefault(() =>
|
||||||
|
{
|
||||||
|
using (var regData = Registry.CurrentUser.OpenSubKey(ValveActiveProcessPID))
|
||||||
|
{
|
||||||
|
return new ActiveProcessSteamRegistryData
|
||||||
|
{
|
||||||
|
RegistryKey = regData.ToString(),
|
||||||
|
PID = Convert.ToInt32(regData.GetValue("pid") ?? 0),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
public static SteamAppRegistryData GetSteamAppDataById(int appId) => TryOrDefault(() =>
|
||||||
{
|
{
|
||||||
var result = new Dictionary<string, string>();
|
using (var regData = Registry.CurrentUser.OpenSubKey(ValveSteamAppsPattern + appId))
|
||||||
|
{
|
||||||
|
return new SteamAppRegistryData
|
||||||
|
{
|
||||||
|
RegistryKey = regData.ToString(),
|
||||||
|
Name = (regData.GetValue("Name") ?? string.Empty).ToString(),
|
||||||
|
|
||||||
result["ValveKeyRegistry"] = GetValveKeyRegistry();
|
AppId = appId,
|
||||||
result["SteamKeyRegistry"] = GetSteamKeyRegistry();
|
|
||||||
result["SteamAppsKeyRegistry"] = GetSteamAppsKeyRegistry();
|
Installed = (regData.GetValue("Installed") ?? 0).Equals(1),
|
||||||
result["SteamDirectoryPath"] = GetSteamDirectoryPath();
|
Updating = (regData.GetValue("Updating") ?? 0).Equals(1),
|
||||||
result["SteamExePath"] = GetSteamExePath();
|
Running = (regData.GetValue("Running") ?? 0).Equals(1),
|
||||||
result["SteamExePid"] = GetSteamExePid();
|
};
|
||||||
result["OriginalSourceModDirectoryPath"] = GetOriginalSourceModDirectoryPath();
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
public static SteamRegistryData GetSteamData() => TryOrDefault(() =>
|
||||||
|
{
|
||||||
|
using (var regData = Registry.CurrentUser.OpenSubKey(ValveSteamKey))
|
||||||
|
{
|
||||||
|
return new SteamRegistryData
|
||||||
|
{
|
||||||
|
RegistryKey = regData.ToString(),
|
||||||
|
LastGameNameUsed = (regData.GetValue("LastGameNameUsed") ?? string.Empty).ToString(),
|
||||||
|
SourceModInstallPath = (regData.GetValue("SourceModInstallPath") ?? string.Empty).ToString(),
|
||||||
|
SteamExe = (regData.GetValue("SteamExe") ?? string.Empty).ToString(),
|
||||||
|
SteamPath = (regData.GetValue("SteamPath") ?? string.Empty).ToString(),
|
||||||
|
Language = (regData.GetValue("Language") ?? string.Empty).ToString(),
|
||||||
|
PseudoUUID = (regData.GetValue("PseudoUUID") ?? string.Empty).ToString(),
|
||||||
|
ModInstallPath = (regData.GetValue("ModInstallPath") ?? string.Empty).ToString(),
|
||||||
|
|
||||||
|
RunningAppID = Convert.ToInt32((regData.GetValue("RunningAppID") ?? "0").ToString()),
|
||||||
|
|
||||||
|
RememberPassword = (regData.GetValue("RememberPassword") ?? 0).Equals(1),
|
||||||
|
AlreadyRetriedOfflineMode = (regData.GetValue("AlreadyRetriedOfflineMode") ?? 0).Equals(1),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
public static ConfigSteamData GetSteamConfig() => TryOrDefault(() =>
|
||||||
|
{
|
||||||
|
var result = new ConfigSteamData();
|
||||||
|
var libraryPaths = new List<string>();
|
||||||
|
|
||||||
|
var steamPath = new DirectoryInfo(GetSteamData().SteamPath).FullName;
|
||||||
|
var configPath = Path.Combine(steamPath, "config", "config.vdf");
|
||||||
|
|
||||||
|
libraryPaths.Add(Path.Combine(steamPath, "steamapps"));
|
||||||
|
|
||||||
|
try {
|
||||||
|
dynamic configObject = VdfConvert.Deserialize(File.ReadAllText(configPath)).Value;
|
||||||
|
dynamic valve;
|
||||||
|
|
||||||
|
try {
|
||||||
|
valve = configObject.Software.Valve;
|
||||||
|
} catch {
|
||||||
|
valve = configObject.Software.valve;
|
||||||
|
}
|
||||||
|
|
||||||
|
var configLibraryPaths = ((VObject)valve.Steam)
|
||||||
|
.Children()
|
||||||
|
.Where(item => item.Key.StartsWith("BaseInstallFolder"))
|
||||||
|
.Select(item => item.Value.ToString())
|
||||||
|
.Select(line => new DirectoryInfo(line).FullName)
|
||||||
|
.Select(line => Path.Combine(line, "steamapps"));
|
||||||
|
|
||||||
|
libraryPaths.AddRange(configLibraryPaths);
|
||||||
|
} catch { }
|
||||||
|
|
||||||
|
result.SteamLibraryFolders = libraryPaths.ToArray();
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
});
|
||||||
|
|
||||||
public static string GetValveKeyRegistry()
|
public static List<LibrarySteamData> GetLibrarySteamDataList() => TryOrDefault(() =>
|
||||||
{
|
{
|
||||||
try
|
var configData = GetSteamConfig();
|
||||||
{
|
var result = new List<LibrarySteamData>();
|
||||||
return Registry.CurrentUser.OpenSubKey(_valveKey).ToString();
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string GetSteamKeyRegistry()
|
foreach (var path in configData.SteamLibraryFolders)
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
{
|
||||||
return Registry.CurrentUser.OpenSubKey(_valveSteamKey).ToString();
|
var libraryData = new LibrarySteamData
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string GetSteamAppsKeyRegistry()
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
return Registry.CurrentUser.OpenSubKey(_valveSteamAppsKey).ToString();
|
|
||||||
}
|
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string GetSteamDirectoryPath()
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
using (var key = Registry.CurrentUser.OpenSubKey(_valveSteamKey))
|
|
||||||
{
|
{
|
||||||
var path = key.GetValue("SteamPath").ToString();
|
Path = path,
|
||||||
if (path != @"")
|
AppManifestDataList = new List<SteamAppManifestData>(),
|
||||||
|
};
|
||||||
|
|
||||||
|
var files = new DirectoryInfo(path).GetFiles("appmanifest_*.acf");
|
||||||
|
|
||||||
|
foreach (var file in files)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
return path;
|
var appData = new SteamAppManifestData();
|
||||||
|
dynamic appManifestObject = VdfConvert.Deserialize(File.ReadAllText(file.FullName)).Value;
|
||||||
|
|
||||||
|
appData.AppId = Convert.ToInt32(appManifestObject.appid.Value);
|
||||||
|
appData.Name = appManifestObject.name.Value;
|
||||||
|
appData.InstallDir = appManifestObject.installdir.Value;
|
||||||
|
|
||||||
|
appData.Path = Path.Combine(path, "common", appData.InstallDir);
|
||||||
|
|
||||||
|
libraryData.AppManifestDataList.Add(appData);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Console.WriteLine(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
result.Add(libraryData);
|
||||||
}
|
}
|
||||||
catch (Exception) { };
|
|
||||||
|
|
||||||
return null;
|
return result;
|
||||||
}
|
});
|
||||||
|
|
||||||
public static string GetSteamExePath()
|
public static List<SteamAppManifestData> GetAllSteamAppManifestData() => TryOrDefault(() =>
|
||||||
|
{
|
||||||
|
var result = new List<SteamAppManifestData>();
|
||||||
|
|
||||||
|
var libraries = GetLibrarySteamDataList();
|
||||||
|
|
||||||
|
foreach (var library in libraries)
|
||||||
|
{
|
||||||
|
result.AddRange(library.AppManifestDataList);
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
});
|
||||||
|
|
||||||
|
public static SteamAppManifestData GetSteamAppManifestDataById(int appId) => GetAllSteamAppManifestData()?.FirstOrDefault(appData => appData.AppId == appId);
|
||||||
|
|
||||||
|
private static T TryOrDefault<T>(Func<T> action)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (var key = Registry.CurrentUser.OpenSubKey(_valveSteamKey))
|
return action();
|
||||||
{
|
|
||||||
var path = key.GetValue("SteamExe").ToString();
|
|
||||||
if (path != @"")
|
|
||||||
{
|
|
||||||
return path;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Exception) { };
|
catch
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string GetSteamExePid()
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
{
|
||||||
using (var key = Registry.CurrentUser.OpenSubKey(_valveActiveProcessPID))
|
return default;
|
||||||
{
|
|
||||||
var pid = key.GetValue("pid").ToString();
|
|
||||||
if (pid != @"0")
|
|
||||||
{
|
|
||||||
return pid;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Exception) { };
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetOriginalSourceModDirectoryPath()
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
using (var key = Registry.CurrentUser.OpenSubKey(_valveSteamKey))
|
|
||||||
{
|
|
||||||
var path = key.GetValue("SourceModInstallPath").ToString();
|
|
||||||
if (path != @"")
|
|
||||||
{
|
|
||||||
return path;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (Exception) { };
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string GetInstalledAppKeyRegistryById(int appId)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
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))
|
|
||||||
{
|
|
||||||
var installedValue = key.GetValue("Installed");
|
|
||||||
if (installedValue.Equals(1))
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (Exception) { };
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
BIN
src/EpicMorg.SteamPathsLib/steam.png
Normal file
BIN
src/EpicMorg.SteamPathsLib/steam.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
@ -33,7 +33,7 @@ namespace SteamTest
|
|||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
textBoxTestAppId.Value = (decimal)SOURCE_SDK_BASE_2013_SINGLEPLAYER_APP_ID;
|
textBoxTestAppId.Value = (decimal)SOURCE_SDK_BASE_2013_SINGLEPLAYER_APP_ID;
|
||||||
this.Text = Text + " " + Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
this.Text = Text + " " + Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||||
; }
|
}
|
||||||
|
|
||||||
private void FrmMain_Load(object sender, EventArgs e)
|
private void FrmMain_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
@ -85,7 +85,8 @@ namespace SteamTest
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Example of using this awesome library
|
// Example of using this awesome library
|
||||||
var text = SteamPathsUtil.GetSteamKeyRegistry();
|
var steamData = SteamPathsUtil.GetSteamData();
|
||||||
|
var text = steamData != null ? steamData.RegistryKey : "";
|
||||||
|
|
||||||
checkBoxVavleSteamReg.Checked = true;
|
checkBoxVavleSteamReg.Checked = true;
|
||||||
checkBoxVavleSteamReg.ForeColor = Color.Green;
|
checkBoxVavleSteamReg.ForeColor = Color.Green;
|
||||||
@ -126,7 +127,8 @@ namespace SteamTest
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Example of using this awesome library
|
// Example of using this awesome library
|
||||||
var text = SteamPathsUtil.GetSteamExePath();
|
var steamData = SteamPathsUtil.GetSteamData();
|
||||||
|
var text = steamData != null ? steamData.SteamExe : "";
|
||||||
|
|
||||||
checkBoxVavleSteamExe.Checked = true;
|
checkBoxVavleSteamExe.Checked = true;
|
||||||
checkBoxVavleSteamExe.ForeColor = Color.Green;
|
checkBoxVavleSteamExe.ForeColor = Color.Green;
|
||||||
@ -156,7 +158,8 @@ namespace SteamTest
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Example of using this awesome library
|
// Example of using this awesome library
|
||||||
var text = SteamPathsUtil.GetSteamExePid();
|
var activeProcess = SteamPathsUtil.GetActiveProcessSteamData();
|
||||||
|
var text = (activeProcess != null ? activeProcess.PID : 0).ToString();
|
||||||
|
|
||||||
checkBoxVavleSteamPID.Checked = true;
|
checkBoxVavleSteamPID.Checked = true;
|
||||||
checkBoxVavleSteamPID.ForeColor = Color.Green;
|
checkBoxVavleSteamPID.ForeColor = Color.Green;
|
||||||
@ -187,7 +190,8 @@ namespace SteamTest
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Example of using this awesome library
|
// Example of using this awesome library
|
||||||
var text = SteamPathsUtil.GetSteamDirectoryPath();
|
var steamData = SteamPathsUtil.GetSteamData();
|
||||||
|
var text = steamData != null ? steamData.SteamPath : "";
|
||||||
|
|
||||||
checkBoxVavleSteamPath.Checked = true;
|
checkBoxVavleSteamPath.Checked = true;
|
||||||
checkBoxVavleSteamPath.ForeColor = Color.Green;
|
checkBoxVavleSteamPath.ForeColor = Color.Green;
|
||||||
@ -217,7 +221,8 @@ namespace SteamTest
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Example of using this awesome library
|
// Example of using this awesome library
|
||||||
var text = SteamPathsUtil.GetOriginalSourceModDirectoryPath();
|
var steamData = SteamPathsUtil.GetSteamData();
|
||||||
|
var text = steamData != null ? steamData.SourceModInstallPath : "";
|
||||||
|
|
||||||
checkBoxVavleSteamSmodPath.Checked = true;
|
checkBoxVavleSteamSmodPath.Checked = true;
|
||||||
checkBoxVavleSteamSmodPath.ForeColor = Color.Green;
|
checkBoxVavleSteamSmodPath.ForeColor = Color.Green;
|
||||||
@ -261,10 +266,12 @@ namespace SteamTest
|
|||||||
CheckSteamAppById(appId, txtBoxVavleSteamAppsCustom, checkBoxVavleSteamAppsCustom, checkBoxVavleSteamAppsCustomInstalled);
|
CheckSteamAppById(appId, txtBoxVavleSteamAppsCustom, checkBoxVavleSteamAppsCustom, checkBoxVavleSteamAppsCustomInstalled);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CheckSteamAppById(int appId, TextBox outputTextBox, CheckBox outputCheckBox, CheckBox outputInstalledCheckBox)
|
private void CheckSteamAppById(int appId, TextBox outputTextBox, CheckBox outputCheckBox, CheckBox outputInstalledCheckBox)
|
||||||
{
|
{
|
||||||
var check = SteamPathsUtil.IsInstalledApps(appId);
|
var appData = SteamPathsUtil.GetSteamAppDataById(appId);
|
||||||
var path = SteamPathsUtil.GetInstalledAppKeyRegistryById(appId);
|
|
||||||
|
var check = appData != null ? appData.Installed : false;
|
||||||
|
var path = appData != null ? appData.RegistryKey : "";
|
||||||
|
|
||||||
outputTextBox.Text = path;
|
outputTextBox.Text = path;
|
||||||
|
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace SteamTest
|
namespace SteamTest
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
@ -32,5 +31,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.2")]
|
[assembly: AssemblyVersion("1.0.0.4")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.2")]
|
[assembly: AssemblyFileVersion("1.0.0.4")]
|
||||||
|
2
src/SteamTest/Properties/Resources.Designer.cs
generated
2
src/SteamTest/Properties/Resources.Designer.cs
generated
@ -19,7 +19,7 @@ namespace SteamTest.Properties {
|
|||||||
// class via a tool like ResGen or Visual Studio.
|
// class via a tool like ResGen or Visual Studio.
|
||||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||||
// with the /str option, or rebuild your VS project.
|
// with the /str option, or rebuild your VS project.
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
internal class Resources {
|
internal class Resources {
|
||||||
|
2
src/SteamTest/Properties/Settings.Designer.cs
generated
2
src/SteamTest/Properties/Settings.Designer.cs
generated
@ -12,7 +12,7 @@ namespace SteamTest.Properties {
|
|||||||
|
|
||||||
|
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.3.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.2.0.0")]
|
||||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||||
|
|
||||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user