mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
Merge pull request #12950 from AdmiralCurtiss/achievement-fix-badge-network-error
AchievementManager: Fix incorrect check on network request return value in FetchBadge()
This commit is contained in:
commit
5f4f974b48
1 changed files with 1 additions and 1 deletions
|
@ -1175,7 +1175,7 @@ void AchievementManager::FetchBadge(AchievementManager::Badge* badge, u32 badge_
|
||||||
}
|
}
|
||||||
auto http_response = http_request.Get(api_request.url, USER_AGENT_HEADER,
|
auto http_response = http_request.Get(api_request.url, USER_AGENT_HEADER,
|
||||||
Common::HttpRequest::AllowedReturnCodes::All);
|
Common::HttpRequest::AllowedReturnCodes::All);
|
||||||
if (http_response.has_value() && http_response->size() <= 0)
|
if (!http_response.has_value() || http_response->empty())
|
||||||
{
|
{
|
||||||
WARN_LOG_FMT(ACHIEVEMENTS,
|
WARN_LOG_FMT(ACHIEVEMENTS,
|
||||||
"RetroAchievements connection failed on image request.\n URL: {}",
|
"RetroAchievements connection failed on image request.\n URL: {}",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue