Enable mac arm64 Discord RPC

This commit is contained in:
+KZ 2024-09-19 10:07:40 -03:00
parent 66e8d1f726
commit d89cd13e85

View file

@ -1,10 +1,7 @@
#include <base/system.h>
#include <engine/discord.h>
// Hack for universal binary builds on macOS: Ignore arm64 until Discord
// releases a native arm64 SDK for macOS.
#if defined(CONF_DISCORD) && !(defined(CONF_ARCH_ARM64) && defined(CONF_PLATFORM_MACOS))
#if defined(CONF_DISCORD)
#include <discord_game_sdk.h>
typedef enum EDiscordResult DISCORD_API (*FDiscordCreate)(DiscordVersion, struct DiscordCreateParams *, struct IDiscordCore **);