From f4e7fc91ba8d12dada247139a61e9ac1b8195276 Mon Sep 17 00:00:00 2001 From: crueter Date: Sun, 15 Feb 2026 20:51:05 +0100 Subject: [cmake, frontend] Fix update checker and move to self-hosted Git (#3558) httplib doesn't like when you include the protocol, as it would seem Signed-off-by: crueter Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3558 Reviewed-by: CamilleLaVey Reviewed-by: Lizzie --- src/frontend_common/update_checker.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/frontend_common/update_checker.cpp') diff --git a/src/frontend_common/update_checker.cpp b/src/frontend_common/update_checker.cpp index c12595185a..6b1fde720c 100644 --- a/src/frontend_common/update_checker.cpp +++ b/src/frontend_common/update_checker.cpp @@ -82,8 +82,8 @@ std::optional UpdateChecker::GetResponse(std::string url, std::stri std::optional UpdateChecker::GetLatestRelease(bool include_prereleases) { const auto update_check_url = std::string{Common::g_build_auto_update_api}; - std::string update_check_path = fmt::format("/repos/{}", - std::string{Common::g_build_auto_update_repo}); + auto update_check_path = fmt::format("{}{}", std::string{Common::g_build_auto_update_api_path}, + std::string{Common::g_build_auto_update_repo}); try { if (include_prereleases) { // This can return either a prerelease or a stable release, // whichever is more recent. @@ -124,14 +124,14 @@ std::optional UpdateChecker::GetLatestRelease(bool includ return Update{latest_tag, latest_name}; } - } catch (nlohmann::detail::out_of_range &) { + } catch (nlohmann::detail::out_of_range&) { LOG_ERROR(Frontend, "Parsing JSON response from {}{} failed during update check: " "nlohmann::detail::out_of_range", update_check_url, update_check_path); return {}; - } catch (nlohmann::detail::type_error &) { + } catch (nlohmann::detail::type_error&) { LOG_ERROR(Frontend, "Parsing JSON response from {}{} failed during update check: " "nlohmann::detail::type_error", -- cgit v1.2.3