|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
#include "hltb_service.h"#include "logger.h"#include "shell_utils.h"#include <algorithm>#include <array>#include <cctype>#include <chrono>#include <cstdio>#include <cstring>#include <ctime>#include <future>#include <iomanip>#include <memory>#include <regex>#include <sstream>#include <thread>Go to the source code of this file.
Namespaces | |
| namespace | anonymous_namespace{hltb_service.cpp} |
Functions | |
| static LRUCache< std::string, HowLongToBeatInfo > & | hltbCache () |
| int | anonymous_namespace{hltb_service.cpp}::jsonGetInt (const std::string &json, const std::string &key) |
| double | anonymous_namespace{hltb_service.cpp}::jsonGetNumber (const std::string &json, const std::string &key) |
| std::string | anonymous_namespace{hltb_service.cpp}::jsonGetString (const std::string &json, const std::string &key) |
| std::vector< std::string > | anonymous_namespace{hltb_service.cpp}::jsonSplitArray (const std::string &json, const std::string &arrayKey) |
Variables | |
| static constexpr size_t | HLTB_CACHE_MAX_SIZE = 500 |
| static constexpr int | HLTB_CACHE_TTL_SECONDS = 2592000 |
|
static |
Definition at line 38 of file hltb_service.cpp.
References HLTB_CACHE_MAX_SIZE, and HLTB_CACHE_TTL_SECONDS.
Referenced by HLTBService::clearCache(), HLTBService::getCacheStats(), and HLTBService::getGameInfo().
|
staticconstexpr |
Definition at line 30 of file hltb_service.cpp.
Referenced by hltbCache().
|
staticconstexpr |
Definition at line 31 of file hltb_service.cpp.
Referenced by hltbCache().