Fixed steam url

This commit is contained in:
acidicoala
2023-01-30 14:43:25 +03:00
parent aa23be373d
commit 95ceac3d47
6 changed files with 6 additions and 4 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}" DEP_SOURCES "${STEAM_API_EXPORTS}" # Is this redundant?
) )
configure_build_config(extra_build_config) configure_build_config(extra_build_config)

View File

@@ -27,7 +27,7 @@ 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 {
const auto url = fmt::format("https://store_mode.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);
const auto response = json.get<SteamResponse>(); const auto response = json.get<SteamResponse>();

View File

@@ -1,7 +1,7 @@
#include <core/globals.hpp> #include <core/globals.hpp>
namespace globals { namespace globals {
// TODO: Refactor to koalabox?
HMODULE smokeapi_handle = nullptr; HMODULE smokeapi_handle = nullptr;
HMODULE steamapi_module = nullptr; HMODULE steamapi_module = nullptr;
HMODULE vstdlib_module = nullptr; HMODULE vstdlib_module = nullptr;

View File

@@ -2,6 +2,7 @@
#include <core/globals.hpp> #include <core/globals.hpp>
#include <koalabox/loader.hpp> #include <koalabox/loader.hpp>
// TODO: Refactor to KoalaBox
namespace paths { namespace paths {
Path get_self_path() { Path get_self_path() {

View File

@@ -7,6 +7,7 @@
namespace smoke_api::config { namespace smoke_api::config {
Config instance; // NOLINT(cert-err58-cpp) Config instance; // NOLINT(cert-err58-cpp)
// TODO: Refactor to Koalabox
void init_config() { void init_config() {
const auto path = paths::get_config_path(); const auto path = paths::get_config_path();

View File

@@ -89,7 +89,7 @@ namespace smoke_api {
koalabox::logger::init_file_logger(paths::get_log_path()); koalabox::logger::init_file_logger(paths::get_log_path());
} }
// This kind of timestamp is reliable on for CI builds, as it will reflect the compilation // This kind of timestamp is reliable only for CI builds, as it will reflect the compilation
// time stamp only when this file gets recompiled. // time stamp only when this file gets recompiled.
LOG_INFO("🐨 {} v{} | Compiled at '{}'", PROJECT_NAME, PROJECT_VERSION, __TIMESTAMP__) LOG_INFO("🐨 {} v{} | Compiled at '{}'", PROJECT_NAME, PROJECT_VERSION, __TIMESTAMP__)