Skip to content

Commit

Permalink
Fixed steam url
Browse files Browse the repository at this point in the history
  • Loading branch information
acidicoala committed Jan 30, 2023
1 parent aa23be3 commit 95ceac3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/core/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>();
Expand Down
2 changes: 1 addition & 1 deletion src/core/globals.cpp
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/core/paths.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <core/globals.hpp>
#include <koalabox/loader.hpp>

// TODO: Refactor to KoalaBox
namespace paths {

Path get_self_path() {
Expand Down
1 change: 1 addition & 0 deletions src/smoke_api/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion src/smoke_api/smoke_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down

0 comments on commit 95ceac3

Please sign in to comment.