30#include <unordered_map>
282 static std::vector<ProtonDBSearchResult>
searchByName(
const std::string& gameName,
283 int maxResults = 10);
290 static std::string
getTier(
int steamAppId);
297 using SearchCallback = std::function<void(
const std::vector<ProtonDBSearchResult>&)>;
316 int maxResults = 10);
355 static void getTierColor(
const std::string& tier,
float& r,
float& g,
float& b,
float& a);
402 const std::function<
void(
const SteamAppInfo&)>& callback);
436 static std::string httpGet(
const std::string& url);
437 static std::string urlEncode(
const std::string& str);
441 static std::vector<ProtonDBSearchResult> parseSearchJson(
const std::string&
json);
445 static void extractTweaksFromNote(
const std::string& note,
ProtonDBTweaks& tweaks);
448 static std::unordered_map<int, ProtonDBGameInfo> cache_;
449 static std::mutex cacheMutex_;
Service for fetching game compatibility data from ProtonDB.
static SteamAppInfo getSteamAppInfo(int steamAppId)
Get Steam store information (native Linux, genres, DRM, etc.).
std::function< void(const ProtonDBGameInfo &)> GameInfoCallback
static std::vector< ProtonDBSearchResult > searchByName(const std::string &gameName, int maxResults=10)
Search for games by name.
static LutrisGameInfo getLutrisInfoBySlug(const std::string &gameSlug)
Get Lutris info by game slug.
static void findGameByNameAsync(const std::string &gameName, const GameInfoCallback &callback)
Find game info by name asynchronously.
static void searchByNameAsync(const std::string &gameName, const SearchCallback &callback, int maxResults=10)
Search for games by name asynchronously.
static void clearCache()
Clear cached data.
static ProtonDBGameInfo findGameByName(const std::string &gameName)
Find game info by name (searches for matching game, returns full info).
static std::string getTier(int steamAppId)
Get compatibility tier for a game (quick lookup).
static void getSteamDeckInfoAsync(int steamAppId, const std::function< void(const SteamDeckInfo &)> &callback)
Get Steam Deck compatibility asynchronously.
std::function< void(const std::vector< ProtonDBSearchResult > &)> SearchCallback
static LutrisGameInfo getLutrisInfo(int steamAppId)
Get Lutris game info and installers.
static ProtonDBGameInfo getGameInfo(int steamAppId)
Get game info by Steam App ID.
static void getTierColor(const std::string &tier, float &r, float &g, float &b, float &a)
Get tier color for UI display (RGBA).
static void getLutrisInfoAsync(int steamAppId, const std::function< void(const LutrisGameInfo &)> &callback)
Get Lutris info asynchronously.
static std::string getTierDescription(const std::string &tier)
Get human-readable tier description.
static void getSteamAppInfoAsync(int steamAppId, const std::function< void(const SteamAppInfo &)> &callback)
Get Steam app info asynchronously.
static SteamDeckInfo getSteamDeckInfo(int steamAppId)
Get Steam Deck compatibility status from Valve's testing.
static void getGameInfoAsync(int steamAppId, const GameInfoCallback &callback)
Get game info asynchronously.
SteamDeckCompatibility
Steam Deck verification status from Valve's testing.
Lutris database entry for a game.
std::vector< LutrisInstaller > installers
Installation script from Lutris with working configurations.
std::string winePrefixArch
std::string launchArguments
std::string workingDirectory
std::map< std::string, std::string > environmentVariables
Complete ProtonDB information for a game.
Result from searching ProtonDB by game name.
Recommended tweaks extracted from ProtonDB reports.
std::string dllOverrides
DLL overrides (e.g., "d3d11=native,builtin").
std::map< std::string, std::string > environmentVariables
Environment variables to set (e.g., PROTON_USE_WINED3D=1).
std::string recommendedProtonVersion
Recommended Proton version (e.g., "GE-Proton8-25").
int reportCount
Number of reports these tweaks were extracted from.
std::string launchArguments
Launch arguments to add.
std::vector< std::string > notes
Notes/warnings from reports.
Basic Steam store information for a game.
std::vector< std::string > genres
std::vector< std::string > categories
std::string controllerSupport
Steam Deck compatibility information from Valve.
SteamDeckCompatibility compatibility
std::vector< std::string > notes
std::string compatibilityString