Updated README [skip ci]

This commit is contained in:
acidicoala
2023-02-15 18:45:51 +03:00
parent 73a05f1d91
commit 6b9cb115c3
3 changed files with 7 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ configure_linker_exports(
FORWARDED_DLL "${STEAMAPI_DLL}_o" FORWARDED_DLL "${STEAMAPI_DLL}_o"
INPUT_SOURCES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/game_mode/exports" INPUT_SOURCES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/game_mode/exports"
INPUT_DLLS "${DLL_INPUT}" INPUT_DLLS "${DLL_INPUT}"
DEP_SOURCES "${STEAM_API_EXPORTS}" # Is this redundant? DEP_SOURCES "${STEAM_API_EXPORTS}"
) )
configure_build_config(extra_build_config) configure_build_config(extra_build_config)

View File

@@ -140,7 +140,8 @@ The configuration file is expected to conform to the Json standard.
Type::: Boolean Type::: Boolean
Default::: `false` Default::: `false`
`unlock_family_sharing`:: Toggles Family Sharing bypass, which enables the borrower of a shared library to start and continue playing games when library owner is playing as well. `unlock_family_sharing`:: *_Store mode only_*.
Toggles Family Sharing bypass, which enables the borrower of a shared library to start and continue playing games when library owner is playing as well.
+ +
[horizontal] [horizontal]
Type::: Boolean Type::: Boolean
@@ -203,7 +204,8 @@ The format is the same as in the aforementioned GitHub config.
Type::: Object (Map of String to Object) Type::: Object (Map of String to Object)
Default::: `{}` Default::: `{}`
`store_config`:: An object that specifies offsets required for store mode operation. `store_config`:: *_Store mode only_*.
An object that specifies offsets required for store mode operation.
It will override the config fetched from {steam_config}[remote source] or local cache. It will override the config fetched from {steam_config}[remote source] or local cache.
Do not modify this value unless you know what you are doing. Do not modify this value unless you know what you are doing.
+ +

View File

@@ -27,6 +27,8 @@ namespace api {
std::optional<Vector<DLC>> fetch_dlcs_from_steam(AppId_t app_id) noexcept { std::optional<Vector<DLC>> fetch_dlcs_from_steam(AppId_t app_id) noexcept {
try { try {
// TODO: Communicate directly with Steam servers.
// ref.: https://github.com/SteamRE/SteamKit
const auto url = fmt::format("https://store.steampowered.com/dlc/{}/ajaxgetdlclist", app_id); const auto url = fmt::format("https://store.steampowered.com/dlc/{}/ajaxgetdlclist", app_id);
const auto json = koalabox::http_client::fetch_json(url); const auto json = koalabox::http_client::fetch_json(url);