mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-06-06 01:13:45 -04:00
[frontend] only set https on Android (#3733)
Otherwise it breaks the shit out of every other platform. Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3733
This commit is contained in:
parent
d604a9da7b
commit
f0a4ac7359
1 changed files with 7 additions and 0 deletions
|
|
@ -81,7 +81,14 @@ std::optional<std::string> UpdateChecker::GetResponse(std::string url, std::stri
|
||||||
}
|
}
|
||||||
|
|
||||||
std::optional<UpdateChecker::Update> UpdateChecker::GetLatestRelease(bool include_prereleases) {
|
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__
|
||||||
|
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};
|
const auto update_check_url = std::string{Common::g_build_auto_update_api};
|
||||||
|
#endif
|
||||||
|
|
||||||
auto update_check_path = fmt::format("{}{}", std::string{Common::g_build_auto_update_api_path},
|
auto update_check_path = fmt::format("{}{}", std::string{Common::g_build_auto_update_api_path},
|
||||||
std::string{Common::g_build_auto_update_repo});
|
std::string{Common::g_build_auto_update_repo});
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue