game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
hltb_service.cpp File Reference
#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>
Include dependency graph for hltb_service.cpp:

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

Function Documentation

◆ hltbCache()

LRUCache< std::string, HowLongToBeatInfo > & hltbCache ( )
static

Variable Documentation

◆ HLTB_CACHE_MAX_SIZE

size_t HLTB_CACHE_MAX_SIZE = 500
staticconstexpr

Definition at line 30 of file hltb_service.cpp.

Referenced by hltbCache().

◆ HLTB_CACHE_TTL_SECONDS

int HLTB_CACHE_TTL_SECONDS = 2592000
staticconstexpr

Definition at line 31 of file hltb_service.cpp.

Referenced by hltbCache().