mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
Cleanup some hardcoded strings
This commit is contained in:
parent
07f46bad2b
commit
ab6a896c64
@ -71,6 +71,7 @@ RETRO_BEGIN_DECLS
|
||||
#define FILE_PATH_INDEX_DIRS_URL ".index-dirs"
|
||||
#define FILE_PATH_INDEX_EXTENDED_URL ".index-extended"
|
||||
#define FILE_PATH_NETPLAY_ROOM_LIST_URL "registry.lpl"
|
||||
#define FILE_PATH_LOBBY_LIBRETRO_URL "http://lobby.libretro.com/"
|
||||
#define FILE_PATH_CORE_THUMBNAILS_URL "http://thumbnails.libretro.com"
|
||||
#define FILE_PATH_CORE_THUMBNAILPACKS_URL "http://thumbnailpacks.libretro.com"
|
||||
#ifdef HAVE_LAKKA_NIGHTLY
|
||||
|
@ -8491,9 +8491,9 @@ static bool discord_download_avatar(
|
||||
if (string_is_empty(avatar_id))
|
||||
return false;
|
||||
|
||||
snprintf(url, sizeof(url), "%s/%s/%s.png", CDN_URL, user_id, avatar_id);
|
||||
snprintf(url, sizeof(url), "%s/%s/%s" FILE_PATH_PNG_EXTENSION, CDN_URL, user_id, avatar_id);
|
||||
net_http_urlencode_full(url_encoded, url, sizeof(url_encoded));
|
||||
snprintf(buf, sizeof(buf), "%s.png", avatar_id);
|
||||
snprintf(buf, sizeof(buf), "%s" FILE_PATH_PNG_EXTENSION, avatar_id);
|
||||
|
||||
transf = (file_transfer_t*)malloc(sizeof(*transf));
|
||||
|
||||
@ -8592,7 +8592,7 @@ finish:
|
||||
|
||||
static void handle_discord_join(const char* secret)
|
||||
{
|
||||
char url[2048] = "http://lobby.libretro.com/";
|
||||
char url[2048] = FILE_PATH_LOBBY_LIBRETRO_URL;
|
||||
struct string_list *list = string_split(secret, "|");
|
||||
struct rarch_state *p_rarch = &rarch_st;
|
||||
discord_state_t *discord_st = &p_rarch->discord_st;
|
||||
|
Loading…
x
Reference in New Issue
Block a user