ChromeAngel wrote:Thanks for sharing Z@C , but I think I have found a more general purpose soloution.
/steam/config/config.vdf is a KeyValues file that contains a key BaseInstallFolder_n for each additional steam library whose value is the full path to the library.
I missed this first time around, when I was searching my Steam folder for references to my test library, because the backslashes in the path were escaped with an extra backslash (eg "D:\\TestLibrary" ).
I've now written myself a function that returns a dictionary of app paths keyed by app id, which I can use to find any version of the Source SDK or any other installed Steam app.
I wonder what other useful things I could do with a complete list of installed apps...
I have been trying to locally get a list of all installed and/or owned apps for a long time. My solution involves grabbing it from your public Steam Community Profile, which works great except things like source mods and other weird apps don't get listed on your profile.
One thing I couldn't figure out from scanning the SteamApps/common folder was the appID's and official game titles that went along with each folder. I didn't want to attempt to manually maintain a dictionary of the folder names associated with each AppID/game title, so I was looking only at what was available from Steam and its folder structure. Were you able to figure out a way to determine these based on scanning the steamapps folder?
On a different issue I'm working on, I have been trying to detect additional Steam Library folder locations for a while and your post is very, very helpful! Thanks. After I'm able to properly detect Steam Library folders, I can fix my game mounting because the method I use now only lets you mount games that are installed into the same Steam Library folder as my mod due to how the |all_source_engine_paths| keyword works.
I opened up my /steam/config/config.vdf and did find my additional Steam Library folder listed in there as BaseInstallFolder_1; however, it concerned me that the primary Steam folder was not listed there.
How can I detect the primary Steam install folder?
Again, thanks for sharing your solution, it's a lot of help.