Solaire / GLC

Lightweight, console-based, tool which automatically detects installed games and displays them to the user.
GNU General Public License v3.0
16 stars 3 forks source link

Support for multiple Steam folder location #62

Closed samuelmichaud closed 1 year ago

samuelmichaud commented 1 year ago

Tested on the version 1.1.0.0 I'm sorry for not testing it on a newer version but the 1.2.0.0 is no more standalone (https://github.com/Solaire/GLC/issues/58) and don't work on my machine anymore

Is your feature request related to a problem? Please describe. Steam allows to use multiple folders for installing & storing games. If I'm not mistaking, GLC scan only for the first one so games from the second (or third, ...) location are never found.

In the Steam UI, you can find it in settings > Download :
image

In the system file, the information can be found (and parse) here :

C:\Program Files (x86)\Steam\config\libraryfolders.vdf

Describe the solution you'd like I would like that GLC scan all Steam folders so no games are left behind :)

EDIT : Reading this file : https://github.com/Solaire/GLC/blob/c5223ce1ad9aa5e4c181288d85c5166ae2a6d7a2/GameLauncher_Console/GameLauncher_Console/Platforms/Steam.cs#L122 I guess the case should be handled.

When looking for the logs, I saw that :

06/11/2022 18:00:49 : ERROR: La clé donnée était absente du dictionnaire. | mscorlib    à System.ThrowHelper.ThrowKeyNotFoundException()
   à System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   à GameLauncher_Console.CRegScanner.GetSteamGames(List`1 gameDataList, Boolean expensiveIcons) | ERROR: Malformed STEAM file: C:\Program Files (x86)\Steam\steamapps\libraryfolders.vdf

Might be another issue then... don't hesitate to close this one if not appropriate.

Many thanks for your hard work! 🙌

Nutzzz commented 1 year ago

Yes, that's been in there for quite a while [on v1.2]. I used to have multiple locations on my PC; I don't anymore, so of course let me know if there's been a regression.

I'm not sure why Publish isn't working for @Solaire (he never fully described the issue), but note I've posted a number of v1.2 alpha binaries in my fork. I'll upload the latest tonight (assuming I remember).

Nutzzz commented 1 year ago

1.2.0-alpha14 has been published in my fork.

samuelmichaud commented 1 year ago

I've seen that! Big thanks. I'm closing this issue since I'm pretty sure it does work and the real issue is more tied to a specific game. Will test it on 1.2 alpha and open another one if still crash and if I see stuff in logs.