[frontend] Force https on bundled OpenSSL

For some unknown reason, bundled OpenSSL likes the `https` scheme,
whereas system OpenSSL (on Gentoo at least) does not... even when the
bundled OpenSSL is built exactly like the Gentoo one, certificate and
all...

Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter 2026-04-08 14:59:46 -04:00
parent 9b2fba1275
commit 58d8c375c7
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6

View file

@ -81,9 +81,7 @@ std::optional<std::string> UpdateChecker::GetResponse(std::string url, std::stri
}
std::optional<UpdateChecker::Update> UpdateChecker::GetLatestRelease(bool include_prereleases) {
// For some unbeknownst reason, only Android likes when https is specified.
// Consider dropping support for this radioactive platform.
#ifdef __ANDROID__
#ifdef YUZU_BUNDLED_OPENSSL
const auto update_check_url = fmt::format("https://{}", Common::g_build_auto_update_api);
#else
const auto update_check_url = std::string{Common::g_build_auto_update_api};