diff options
author | bunnei <bunneidev@gmail.com> | 2020-02-20 03:15:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-20 03:15:06 +0100 |
commit | 2342c0d50e354826d28c5fbc58b76d0047ea5e72 (patch) | |
tree | b188f799411ac05f76b01e3ff74d1047d6267753 /src/core | |
parent | Merge pull request #3415 from ReinUsesLisp/texture-code (diff) | |
parent | fix issue with windows getnameinfo() (diff) | |
download | yuzu-2342c0d50e354826d28c5fbc58b76d0047ea5e72.tar yuzu-2342c0d50e354826d28c5fbc58b76d0047ea5e72.tar.gz yuzu-2342c0d50e354826d28c5fbc58b76d0047ea5e72.tar.bz2 yuzu-2342c0d50e354826d28c5fbc58b76d0047ea5e72.tar.lz yuzu-2342c0d50e354826d28c5fbc58b76d0047ea5e72.tar.xz yuzu-2342c0d50e354826d28c5fbc58b76d0047ea5e72.tar.zst yuzu-2342c0d50e354826d28c5fbc58b76d0047ea5e72.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/service/bcat/backend/boxcat.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/service/bcat/backend/boxcat.cpp b/src/core/hle/service/bcat/backend/boxcat.cpp index 67e39a5c4..f589864ee 100644 --- a/src/core/hle/service/bcat/backend/boxcat.cpp +++ b/src/core/hle/service/bcat/backend/boxcat.cpp @@ -200,7 +200,8 @@ private: DownloadResult DownloadInternal(const std::string& resolved_path, u32 timeout_seconds, const std::string& content_type_name) { if (client == nullptr) { - client = std::make_unique<httplib::SSLClient>(BOXCAT_HOSTNAME, PORT, timeout_seconds); + client = std::make_unique<httplib::SSLClient>(BOXCAT_HOSTNAME, PORT); + client->set_timeout_sec(timeout_seconds); } httplib::Headers headers{ @@ -448,8 +449,8 @@ std::optional<std::vector<u8>> Boxcat::GetLaunchParameter(TitleIDVersion title) Boxcat::StatusResult Boxcat::GetStatus(std::optional<std::string>& global, std::map<std::string, EventStatus>& games) { - httplib::SSLClient client{BOXCAT_HOSTNAME, static_cast<int>(PORT), - static_cast<int>(TIMEOUT_SECONDS)}; + httplib::SSLClient client{BOXCAT_HOSTNAME, static_cast<int>(PORT)}; + client.set_timeout_sec(static_cast<int>(TIMEOUT_SECONDS)); httplib::Headers headers{ {std::string("Game-Assets-API-Version"), std::string(BOXCAT_API_VERSION)}, |