125 static std::filesystem::path
getSteamAppsPath(
const std::filesystem::path& libraryRoot);
133 static std::filesystem::path
getAppManifestPath(
const std::filesystem::path& libraryRoot,
142 static std::filesystem::path
getCompatDataPath(
const std::filesystem::path& libraryRoot,
151 static std::filesystem::path
getGameInstallPath(
const std::filesystem::path& libraryRoot,
152 const std::string& installDir);
224 static std::filesystem::path cachedSteamRoot_;
225 static std::filesystem::path cachedHomeDir_;
226 static bool cacheInitialized_;
227 static std::mutex cacheMutex_;
232 static void initializeCache();
239 static bool isValidSteamRoot(
const std::filesystem::path& path);
Centralized management of all Steam-related filesystem paths.
static bool isCacheValid()
Check if path cache is initialized.
static std::vector< std::filesystem::path > getCompatToolsPaths()
Get all compatibility tools directories.
static std::filesystem::path getGameInstallPath(const std::filesystem::path &libraryRoot, const std::string &installDir)
Get path to game's installation directory.
static std::filesystem::path getLocalConfigPath(const std::string &userId)
Get path to user's localconfig.vdf.
static std::filesystem::path getAppManifestPath(const std::filesystem::path &libraryRoot, uint32_t appId)
Get path to an appmanifest file.
static std::filesystem::path getConfigPath()
Get path to global config.vdf.
static std::filesystem::path getHomeDirectory()
Get user's home directory.
static std::filesystem::path getUserDataDirectory()
Get Steam userdata directory.
static std::vector< std::filesystem::path > getAllSteamRoots()
Get all possible Steam installation directories.
static std::filesystem::path getCompatDataPath(const std::filesystem::path &libraryRoot, uint32_t appId)
Get path to game's compatdata directory (Proton prefix).
static bool isFlatpakSteam()
Check if Steam is installed via Flatpak.
static void invalidateCache()
Invalidate cached paths.
static std::filesystem::path getPrimarySteamRoot()
Get primary Steam installation directory.
static std::vector< std::filesystem::path > getProtonInstallPaths()
Get paths where official Proton versions are installed.
static bool isSteamInstalled()
Check if Steam is installed (any method).
static std::filesystem::path getLoginUsersPath()
Get path to loginusers.vdf.
static std::filesystem::path getSteamAppsPath(const std::filesystem::path &libraryRoot)
Get steamapps directory for a library.
static std::filesystem::path getLibraryFoldersPath()
Get path to libraryfolders.vdf.
static bool isSnapSteam()
Check if Steam is installed via Snap.