Skip to content

Instantly share code, notes, and snippets.

@AndrewSav
AndrewSav / SteamShortcuts.cs
Last active January 14, 2025 05:15
Creates shortcuts of your whole installed steam library in a folder on your destop
// Creates shortcuts of your whole installed steam library in a folder on your desktop
// Note 1: icons for some games do not get set correctly, but than they do not get set correctly by steam itself either
// Note 2: code heavily depends on the steam internal file formats so this can stop working without notice any time
// Note 3: this code does not have any command line arguments, it tries to detect path to your steam folder
// if it can't feel free to modify it to hardcode the path. Similarly, you can change where the shortcuts
// are written to in the code. Sorry, not a user-friendly tool at all - you are assumed to be a developer
// Some links useful for fixing this, when format changes:
// https://github.com/solsticegamestudios/vdf
// https://github.com/Matoking/protontricks/blob/master/src/protontricks/steam.py
using System;