Merge pull request #8994 from M0REKZ/pr_discord_mac

Enable mac arm64 Discord RPC
This commit is contained in:
Edgar 2024-09-19 14:33:57 +00:00 committed by GitHub
commit 14e2470780
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 **);