mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Merge pull request #7945 from fr500/master
[discord] early return if avatar isn't set
This commit is contained in:
commit
f500cf19ab
@ -114,6 +114,9 @@ static bool discord_download_avatar(
|
||||
if(filestream_exists(full_path))
|
||||
return true;
|
||||
|
||||
if (string_is_empty(avatar_id))
|
||||
return false;
|
||||
|
||||
snprintf(url, sizeof(url), "%s/%s/%s.png", cdn_url, user_id, avatar_id);
|
||||
net_http_urlencode_full(url_encoded, url, sizeof(url_encoded));
|
||||
snprintf(buf, sizeof(buf), "%s.png", avatar_id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user