mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2025-12-05 21:15:39 -05:00
Fixed steam url
This commit is contained in:
@@ -28,7 +28,7 @@ configure_linker_exports(
|
||||
FORWARDED_DLL "${STEAMAPI_DLL}_o"
|
||||
INPUT_SOURCES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/game_mode/exports"
|
||||
INPUT_DLLS "${DLL_INPUT}"
|
||||
DEP_SOURCES "${STEAM_API_EXPORTS}"
|
||||
DEP_SOURCES "${STEAM_API_EXPORTS}" # Is this redundant?
|
||||
)
|
||||
|
||||
configure_build_config(extra_build_config)
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace api {
|
||||
|
||||
std::optional<Vector<DLC>> fetch_dlcs_from_steam(AppId_t app_id) noexcept {
|
||||
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 response = json.get<SteamResponse>();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <core/globals.hpp>
|
||||
|
||||
namespace globals {
|
||||
|
||||
// TODO: Refactor to koalabox?
|
||||
HMODULE smokeapi_handle = nullptr;
|
||||
HMODULE steamapi_module = nullptr;
|
||||
HMODULE vstdlib_module = nullptr;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <core/globals.hpp>
|
||||
#include <koalabox/loader.hpp>
|
||||
|
||||
// TODO: Refactor to KoalaBox
|
||||
namespace paths {
|
||||
|
||||
Path get_self_path() {
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
namespace smoke_api::config {
|
||||
Config instance; // NOLINT(cert-err58-cpp)
|
||||
|
||||
// TODO: Refactor to Koalabox
|
||||
void init_config() {
|
||||
const auto path = paths::get_config_path();
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace smoke_api {
|
||||
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.
|
||||
LOG_INFO("🐨 {} v{} | Compiled at '{}'", PROJECT_NAME, PROJECT_VERSION, __TIMESTAMP__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user