Don't rely on steamapps.vrmanifest

The file seems to no longer be updated by Steam.
Instead, read installed games from libraryfolders.vdf, owned games from
user's localconfig.vdf and data from appinfo.vdf
This commit is contained in:
Patrick Nicolas
2026-10-25 20:45:42 +01:00
parent edb1bf25ad
commit 4c7d57bd6d
5 changed files with 148 additions and 128 deletions
+1 -8
View File
@@ -35,19 +35,13 @@ public:
// localised names, with empty locale for default
std::unordered_map<std::string, std::string> name;
std::string url;
};
struct icon
{
std::string clienticon;
std::string linuxclienticon;
std::filesystem::path icon;
};
private:
std::filesystem::path root;
bool flatpak;
std::optional<uint32_t> default_userid;
std::optional<std::unordered_map<uint32_t, icon>> icons;
std::unordered_map<uint32_t, std::filesystem::path> shortcut_icons;
steam(std::filesystem::path root, bool flatpak);
@@ -55,7 +49,6 @@ public:
static std::vector<steam> find_installations();
std::vector<application> list_applications();
std::optional<std::filesystem::path> get_icon(uint64_t app_id);
std::string get_steam_command() const;
};