mirror of
https://github.com/EpicMorg/SteamPathsLib.git
synced 2025-04-16 22:12:31 +03:00
Compare commits
15 Commits
Author | SHA1 | Date | |
---|---|---|---|
bccd9b1bec | |||
4bc5e0cf38 | |||
d3d7aba0e8 | |||
08b0736521 | |||
fd3cf4fa22 | |||
44c8097599 | |||
5f9e2a0542 | |||
0eded93505 | |||
57655e7744 | |||
|
428ba714e6 | ||
|
1daa6bb5ad | ||
|
df130b7ead | ||
|
ac26ae83e9 | ||
|
3aa8aec61e | ||
|
3957f87103 |
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,4 +1,4 @@
|
||||
<Project Sdk="Microsoft.Net.Sdk">
|
||||
<Project Sdk="Microsoft.Net.Sdk">
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>steam.ico</ApplicationIcon>
|
||||
<TargetFrameworks>net46;net461;net462;net47;net471;net472;net48;netstandard1.3;netcoreapp3.1</TargetFrameworks>
|
||||
@ -9,23 +9,24 @@
|
||||
<PackageIcon>steam.png</PackageIcon>
|
||||
<PackageProjectUrl>https://github.com/EpicMorg/SteamPathsLib</PackageProjectUrl>
|
||||
<Copyright>Copyright © EpicMorg 2020</Copyright>
|
||||
<AssemblyVersion>1.1.0.5</AssemblyVersion>
|
||||
<FileVersion>1.1.0.5</FileVersion>
|
||||
<Version>1.1.0.5</Version>
|
||||
<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>Code review and optimizations, dotNetCore support</PackageReleaseNotes>
|
||||
<PackageReleaseNotes>Some of fixes</PackageReleaseNotes>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<None Include="steam.png">
|
||||
<Pack>True</Pack>
|
||||
<PackagePath></PackagePath>
|
||||
</None>
|
||||
<PackageReference Include="Microsoft.Win32.Registry" Version="4.7.0" />
|
||||
<PackageReference Include="Gameloop.Vdf" Version="0.5.0" />
|
||||
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
|
||||
<PackageReference Include="Gameloop.Vdf" Version="0.6.2" />
|
||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||
<None Include="steam.ico">
|
||||
<Pack>True</Pack>
|
||||
|
@ -85,15 +85,25 @@
|
||||
|
||||
libraryPaths.Add(Path.Combine(steamPath, "steamapps"));
|
||||
|
||||
dynamic configObject = VdfConvert.Deserialize(File.ReadAllText(configPath)).Value;
|
||||
var configLibraryPaths = ((VObject)configObject.Software.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"));
|
||||
try {
|
||||
dynamic configObject = VdfConvert.Deserialize(File.ReadAllText(configPath)).Value;
|
||||
dynamic valve;
|
||||
|
||||
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();
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
|
||||
</startup>
|
||||
</configuration>
|
||||
|
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.
|
||||
// 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.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
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.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 {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
@ -8,7 +8,7 @@
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>SteamTest</RootNamespace>
|
||||
<AssemblyName>SteamTest</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<TargetFrameworkProfile />
|
||||
|
Loading…
x
Reference in New Issue
Block a user