mirror of
https://github.com/libretro/RetroArch
synced 2025-04-03 10:21:31 +00:00
Buildfix
This commit is contained in:
parent
65232d3ab4
commit
b1ec722a75
@ -2828,6 +2828,7 @@ TODO: Add a setting for these tweaks */
|
|||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case CMD_EVENT_DISCORD_INIT:
|
case CMD_EVENT_DISCORD_INIT:
|
||||||
|
#ifdef HAVE_DISCORD
|
||||||
{
|
{
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
@ -2839,15 +2840,19 @@ TODO: Add a setting for these tweaks */
|
|||||||
discord_init();
|
discord_init();
|
||||||
discord_inited = true;
|
discord_inited = true;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case CMD_EVENT_DISCORD_DEINIT:
|
case CMD_EVENT_DISCORD_DEINIT:
|
||||||
|
#ifdef HAVE_DISCORD
|
||||||
if (!discord_inited)
|
if (!discord_inited)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
discord_shutdown();
|
discord_shutdown();
|
||||||
discord_inited = false;
|
discord_inited = false;
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case CMD_EVENT_DISCORD_UPDATE:
|
case CMD_EVENT_DISCORD_UPDATE:
|
||||||
|
#ifdef HAVE_DISCORD
|
||||||
if (!data || !discord_inited)
|
if (!data || !discord_inited)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -2855,6 +2860,7 @@ TODO: Add a setting for these tweaks */
|
|||||||
discord_userdata_t *userdata = (discord_userdata_t*)data;
|
discord_userdata_t *userdata = (discord_userdata_t*)data;
|
||||||
discord_update(userdata->status);
|
discord_update(userdata->status);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case CMD_EVENT_NONE:
|
case CMD_EVENT_NONE:
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user