Skip to content

Commit

Permalink
Bump GameFinder.StoreHandlers.Steam from 3.1.0 to 3.2.1 (#334)
Browse files Browse the repository at this point in the history
* Bump GameFinder.StoreHandlers.Steam from 3.1.0 to 3.2.1

Bumps [GameFinder.StoreHandlers.Steam](https://github.com/erri120/GameFinder) from 3.1.0 to 3.2.1.
- [Release notes](https://github.com/erri120/GameFinder/releases)
- [Changelog](https://github.com/erri120/GameFinder/blob/master/CHANGELOG.md)
- [Commits](erri120/GameFinder@v3.1.0...v3.2.1)

---
updated-dependencies:
- dependency-name: GameFinder.StoreHandlers.Steam
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update code for SteamHandler API change

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Seweryn Presnal <IhateTrains@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and IhateTrains authored Jul 25, 2023
1 parent 1a1338e commit 1a66011
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions commonItems/CommonFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using GameFinder.RegistryUtils;
using GameFinder.StoreHandlers.Steam;
using GameFinder.StoreHandlers.GOG;
using GameFinder.StoreHandlers.Steam.Models.ValueTypes;
using GameFinder.Wine;
using IcgSoftware.IntToOrdinalNumber;
using NexusMods.Paths;
Expand Down Expand Up @@ -141,14 +142,12 @@ public static string NormalizeUTF8Path(string utf8Path) {
/// Given a Steam AppId, returns the install path for the corresponding game.
/// </summary>
/// <returns>Install path for the corresponding game, or null</returns>
public static string? GetSteamInstallPath(int steamId) {
public static string? GetSteamInstallPath(uint steamId) {
var handler = new SteamHandler(FileSystem.Shared, OperatingSystem.IsWindows() ? WindowsRegistry.Shared : null);

try {
var gameId = SteamGameId.From(steamId);
var game = handler.FindOneGameById(gameId, out ErrorMessage[] errors);

if (game is not null && game.AppId == gameId) {
var game = handler.FindOneGameById(AppId.From(steamId), out ErrorMessage[] errors);
if (game is not null) {
return game.Path.GetFullPath();
}

Expand Down
2 changes: 1 addition & 1 deletion commonItems/commonItems.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<ItemGroup>
<PackageReference Include="AnyAscii" Version="0.3.2" />
<PackageReference Include="GameFinder.StoreHandlers.GOG" Version="3.2.1" />
<PackageReference Include="GameFinder.StoreHandlers.Steam" Version="3.1.0" />
<PackageReference Include="GameFinder.StoreHandlers.Steam" Version="3.2.1" />
<PackageReference Include="IcgSoftware.IntToOrdinalNumber" Version="1.0.0" />
<PackageReference Include="log4net" Version="2.0.15" />
<PackageReference Include="Microsoft.VisualBasic" Version="10.3.0" />
Expand Down

0 comments on commit 1a66011

Please sign in to comment.