Skip to content

Commit

Permalink
Fixed Library not picking up betas from Steam
Browse files Browse the repository at this point in the history
  • Loading branch information
Spodi committed Nov 2, 2024
1 parent 6644fb4 commit 88a8baa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions GameLibrary.psm1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<#
.NOTES
Spodi's Powershell Game Library Module v24.04.05
Copyright (C) 2022-2023 Spodi
Spodi's Powershell Game Library Module v24.11.02
Copyright (C) 2022-2024 Spodi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -21,6 +21,7 @@ enum AppType {
Unknown
Game
Demo
Beta
Application
AddOn
Music
Expand Down Expand Up @@ -334,7 +335,7 @@ Only basic info can be retrieved."
if ((Test-Path $steamgamepath)) {
$gameobject = [App]@{
Name = $game.Name
Type = & { if ($type) { $type } else { 0 } }
Type = if ([AppType].GetEnumNames() -contains $type) { $type } else { 0; Write-Warning "Unknown Type: `"$type`" for title `"$($game.name)`"" }
Platform = [Platform]@{
Name = 'Steam'
ID = $game.ID
Expand Down Expand Up @@ -518,7 +519,7 @@ function Get-LibraryItch {
if (Test-Path $_.verdict.basePath) {
$gameobject = ([App]@{
Name = $_.title
Type = $_.classification
Type = if ([AppType].GetEnumNames() -contains $_.classification) { $_.classification } else { 0; Write-Warning "Unknown Type: `"$($_.classification)`" for title `"$($_.title)`"" }
Platform = [Platform]@{
Name = 'itch'
ID = $_.game_id
Expand Down

0 comments on commit 88a8baa

Please sign in to comment.