Compare commits

...

18 Commits

Author SHA1 Message Date
bccd9b1bec
Merge branch 'develop' 2022-04-13 22:28:57 +03:00
4bc5e0cf38
bump versions 2022-04-13 22:28:42 +03:00
d3d7aba0e8
Merge branch 'master' into develop 2022-04-13 22:09:54 +03:00
08b0736521
gha 2022-04-13 22:09:08 +03:00
fd3cf4fa22
Merge branch 'master' into develop 2022-04-13 22:06:35 +03:00
44c8097599
Update dotnet-core.yml 2020-09-18 20:18:12 +03:00
5f9e2a0542
Create dotnet-core.yml 2020-09-18 20:02:18 +03:00
0eded93505
Merge pull request #11 from EpicMorg/dependabot/nuget/Gameloop.Vdf-0.6.1
Bump Gameloop.Vdf from 0.5.0 to 0.6.1
2020-09-18 19:56:11 +03:00
57655e7744
Merge pull request #10 from EpicMorg/dependabot/add-v2-config-file
Create Dependabot config file
2020-09-18 19:55:46 +03:00
dependabot-preview[bot]
428ba714e6
Bump Gameloop.Vdf from 0.5.0 to 0.6.1
Bumps [Gameloop.Vdf](https://github.com/shravan2x/Gameloop.Vdf) from 0.5.0 to 0.6.1.
- [Release notes](https://github.com/shravan2x/Gameloop.Vdf/releases)
- [Commits](https://github.com/shravan2x/Gameloop.Vdf/compare/v0.5.0...v0.6.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-18 16:54:57 +00:00
dependabot-preview[bot]
1daa6bb5ad
Create Dependabot config file 2020-09-18 16:54:09 +00:00
AlexZ
df130b7ead Update EpicMorg.SteamPathsLib.csproj 2020-06-11 19:21:35 +03:00
Alex_Z
ac26ae83e9
Merge pull request #9 from EpicMorg/develop
Develop
2020-06-10 23:32:36 +03:00
AlexZ
3aa8aec61e Update SteamPathsUtil.cs
* fix parser
2020-05-30 13:36:59 +03:00
AlexZ
3957f87103 Update SteamPathsUtil.cs
* fix read steam config
2020-05-29 23:15:31 +03:00
55f2c00ee7
Merge pull request #7 from EpicMorg/develop
Develop
2020-03-19 12:47:09 +03:00
614275b3be
Merge pull request #6 from EpicMorg/feature/netcore
Feature/netcore
2020-03-19 12:46:20 +03:00
7db191cf39 Update EpicMorg.SteamPathsLib.csproj 2020-03-19 12:45:29 +03:00
10 changed files with 163 additions and 20 deletions

9
.github/dependabot.yml vendored Normal file
View 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
View 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
View 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
View 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

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.Net.Sdk"> <Project Sdk="Microsoft.Net.Sdk">
<PropertyGroup> <PropertyGroup>
<ApplicationIcon>steam.ico</ApplicationIcon> <ApplicationIcon>steam.ico</ApplicationIcon>
<TargetFrameworks>net46;netstandard1.3</TargetFrameworks> <TargetFrameworks>net46;net461;net462;net47;net471;net472;net48;netstandard1.3;netcoreapp3.1</TargetFrameworks>
<Company>EpicMorg</Company> <Company>EpicMorg</Company>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance> <PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
@ -9,23 +9,24 @@
<PackageIcon>steam.png</PackageIcon> <PackageIcon>steam.png</PackageIcon>
<PackageProjectUrl>https://github.com/EpicMorg/SteamPathsLib</PackageProjectUrl> <PackageProjectUrl>https://github.com/EpicMorg/SteamPathsLib</PackageProjectUrl>
<Copyright>Copyright © EpicMorg 2020</Copyright> <Copyright>Copyright © EpicMorg 2020</Copyright>
<AssemblyVersion>1.1.0.4</AssemblyVersion> <AssemblyVersion>1.1.0.6</AssemblyVersion>
<FileVersion>1.1.0.4</FileVersion> <FileVersion>1.1.0.6</FileVersion>
<Version>1.1.0.4</Version> <Version>1.1.0.6</Version>
<Description>Small helper for getting some registry keys of Steam.</Description> <Description>Small helper for getting some registry keys of Steam.</Description>
<SignAssembly>False</SignAssembly>
<Authors>EpicMorgDev, AurZum, stam, kasthack</Authors> <Authors>EpicMorgDev, AurZum, stam, kasthack</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression> <PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryType>git</RepositoryType> <RepositoryType>git</RepositoryType>
<PackageTags>steam epicmorg registry path helper vdf</PackageTags> <PackageTags>steam epicmorg registry path helper vdf</PackageTags>
<PackageReleaseNotes>Code review and optimizations, dotNetCore support</PackageReleaseNotes> <PackageReleaseNotes>Some of fixes</PackageReleaseNotes>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<None Include="steam.png"> <None Include="steam.png">
<Pack>True</Pack> <Pack>True</Pack>
<PackagePath></PackagePath> <PackagePath></PackagePath>
</None> </None>
<PackageReference Include="Microsoft.Win32.Registry" Version="4.7.0" /> <PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
<PackageReference Include="Gameloop.Vdf" Version="0.5.0" /> <PackageReference Include="Gameloop.Vdf" Version="0.6.2" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" /> <PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<None Include="steam.ico"> <None Include="steam.ico">
<Pack>True</Pack> <Pack>True</Pack>

View File

@ -85,15 +85,25 @@
libraryPaths.Add(Path.Combine(steamPath, "steamapps")); libraryPaths.Add(Path.Combine(steamPath, "steamapps"));
dynamic configObject = VdfConvert.Deserialize(File.ReadAllText(configPath)).Value; try {
var configLibraryPaths = ((VObject)configObject.Software.Valve.Steam) dynamic configObject = VdfConvert.Deserialize(File.ReadAllText(configPath)).Value;
.Children() dynamic valve;
.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); 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(); result.SteamLibraryFolders = libraryPaths.ToArray();

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<startup> <startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup> </startup>
</configuration> </configuration>

View File

@ -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 {

View File

@ -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.6.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())));

View File

@ -8,7 +8,7 @@
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<RootNamespace>SteamTest</RootNamespace> <RootNamespace>SteamTest</RootNamespace>
<AssemblyName>SteamTest</AssemblyName> <AssemblyName>SteamTest</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion> <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<TargetFrameworkProfile /> <TargetFrameworkProfile />