mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
discord: simplified some lines
This commit is contained in:
parent
bf9a8ac4a0
commit
010412c895
@ -109,15 +109,11 @@ void discord_update(enum discord_presence presence)
|
|||||||
playlist_t *current_playlist = playlist_get_cached();
|
playlist_t *current_playlist = playlist_get_cached();
|
||||||
|
|
||||||
if (current_playlist)
|
if (current_playlist)
|
||||||
{
|
|
||||||
playlist_get_index_by_path(
|
playlist_get_index_by_path(
|
||||||
current_playlist, path_get(RARCH_PATH_CONTENT), NULL, &label, NULL, NULL, NULL, NULL);
|
current_playlist, path_get(RARCH_PATH_CONTENT), NULL, &label, NULL, NULL, NULL, NULL);
|
||||||
}
|
|
||||||
|
|
||||||
if (!label)
|
if (!label)
|
||||||
{
|
|
||||||
label = (char *)path_basename(path_get(RARCH_PATH_BASENAME));
|
label = (char *)path_basename(path_get(RARCH_PATH_BASENAME));
|
||||||
}
|
|
||||||
|
|
||||||
start_time = time(0);
|
start_time = time(0);
|
||||||
discord_presence.state = core_info->display_name;
|
discord_presence.state = core_info->display_name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user