cyberrumor / ammo

Almost Manual Mod Organizer - Linux MO for Bethesda Games
GNU General Public License v2.0
25 stars 6 forks source link

Support multiple Steam libraries #26

Closed emar10 closed 10 months ago

emar10 commented 10 months ago

At the moment AMMO only looks for supported games in $HOME/.local/share/Steam/steamapps/common, meaning games installed in other Steam libraries are not detected.

libraryfolders.vdf located in the main steamapps directory could be used to locate additional libraries to search.

cyberrumor commented 10 months ago

Oh nice, I had no idea Steam did that, though I have noticed that file before. What do you do in steam that manipulates that file? Add a non steam game?

emar10 commented 10 months ago

The Storage tab in Steam's settings allows adding libraries and moving games between them. On desktop this is mainly useful for storing games on a separate data partition/drive, this is also how SD card support works on the Steam Deck.

As far as getting library locations out of libraryfolders.vdf, it uses Valve's own plaintext key/value format, so a quick parser to just grab all configured library paths would do the trick. I'd be happy to contribute if you're open to PRs.

cyberrumor commented 10 months ago

I just pushed some contribution guidelines. Feel free to throw down a PR (or just wait a while, I'll get it added eventually if you don't). Thanks either way :)

cyberrumor commented 10 months ago

Ty!