game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
protondb_service.cpp File Reference
#include "protondb_service.h"
#include "logger.h"
#include "lru_cache.h"
#include "shell_utils.h"
#include <algorithm>
#include <cctype>
#include <chrono>
#include <cstring>
#include <future>
#include <iomanip>
#include <memory>
#include <regex>
#include <sstream>
#include <array>
#include <cstdio>
Include dependency graph for protondb_service.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{protondb_service.cpp}

Functions

bool anonymous_namespace{protondb_service.cpp}::containsIntField (const std::string &response, const char *key, int value)
int anonymous_namespace{protondb_service.cpp}::jsonGetInt (const std::string &json, const std::string &key)
double anonymous_namespace{protondb_service.cpp}::jsonGetNumber (const std::string &json, const std::string &key)
std::string anonymous_namespace{protondb_service.cpp}::jsonGetString (const std::string &json, const std::string &key)
std::vector< std::string > anonymous_namespace{protondb_service.cpp}::jsonSplitArray (const std::string &json)
LRUCache< int, LutrisGameInfo > & anonymous_namespace{protondb_service.cpp}::lutrisCache ()
LRUCache< int, ProtonDBGameInfo > & anonymous_namespace{protondb_service.cpp}::protondbCache ()
LRUCache< int, SteamAppInfo > & anonymous_namespace{protondb_service.cpp}::steamAppCache ()
LRUCache< int, SteamDeckInfo > & anonymous_namespace{protondb_service.cpp}::steamDeckCache ()
void anonymous_namespace{protondb_service.cpp}::storeAsyncFuture (std::shared_ptr< std::future< void > > future)

Variables

std::vector< std::shared_ptr< std::future< void > > > anonymous_namespace{protondb_service.cpp}::activeFutures_
std::mutex anonymous_namespace{protondb_service.cpp}::asyncFuturesMutex_
static constexpr size_t LUTRIS_CACHE_MAX_SIZE = 200
static constexpr int LUTRIS_CACHE_TTL_SECONDS = 3600
static constexpr size_t PROTONDB_CACHE_MAX_SIZE = 500
static constexpr int PROTONDB_CACHE_TTL_SECONDS = 1800
static constexpr size_t STEAM_APP_CACHE_MAX_SIZE = 1000
static constexpr int STEAM_APP_CACHE_TTL_SECONDS = 86400
static constexpr size_t STEAM_DECK_CACHE_MAX_SIZE = 500
static constexpr int STEAM_DECK_CACHE_TTL_SECONDS = 3600

Variable Documentation

◆ LUTRIS_CACHE_MAX_SIZE

size_t LUTRIS_CACHE_MAX_SIZE = 200
staticconstexpr

◆ LUTRIS_CACHE_TTL_SECONDS

int LUTRIS_CACHE_TTL_SECONDS = 3600
staticconstexpr

◆ PROTONDB_CACHE_MAX_SIZE

size_t PROTONDB_CACHE_MAX_SIZE = 500
staticconstexpr

◆ PROTONDB_CACHE_TTL_SECONDS

int PROTONDB_CACHE_TTL_SECONDS = 1800
staticconstexpr

◆ STEAM_APP_CACHE_MAX_SIZE

size_t STEAM_APP_CACHE_MAX_SIZE = 1000
staticconstexpr

◆ STEAM_APP_CACHE_TTL_SECONDS

int STEAM_APP_CACHE_TTL_SECONDS = 86400
staticconstexpr

◆ STEAM_DECK_CACHE_MAX_SIZE

size_t STEAM_DECK_CACHE_MAX_SIZE = 500
staticconstexpr

◆ STEAM_DECK_CACHE_TTL_SECONDS

int STEAM_DECK_CACHE_TTL_SECONDS = 3600
staticconstexpr