From 9c05ffed34f1ff34a38aa208d71c6486fdaa6d03 Mon Sep 17 00:00:00 2001 From: Buggem's Fedora PC <66670928+Buggem@users.noreply.github.com> Date: Sun, 22 Dec 2024 12:18:40 +1100 Subject: [PATCH] Finish formatting --- desktop_version/src/DiscordNetwork.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/desktop_version/src/DiscordNetwork.c b/desktop_version/src/DiscordNetwork.c index 244e5124..5470d4b8 100644 --- a/desktop_version/src/DiscordNetwork.c +++ b/desktop_version/src/DiscordNetwork.c @@ -51,7 +51,8 @@ static void* libHandle = NULL; FUNC_LIST #undef FOREACH_FUNC -bool DISCORD_REQUIRE(int x) { +bool DISCORD_REQUIRE(int x) +{ if (!discordDetected && discordPostInit) { return false; @@ -112,7 +113,7 @@ int32_t DISCORD_init(void) params.client_id = DISCORD_CLIENT_ID; params.flags = DiscordCreateFlags_NoRequireDiscord; - if(!DISCORD_REQUIRE(DiscordCreate(DISCORD_VERSION, ¶ms, &app.core))) + if (!DISCORD_REQUIRE(DiscordCreate(DISCORD_VERSION, ¶ms, &app.core))) { // Discord's API couldn't initialise, so just ignore it discordPostInit = true; // even if it fails, set post init to true. vlog_debug("Discord API failed to initialise!"); @@ -120,7 +121,7 @@ int32_t DISCORD_init(void) return 0; } - if(app.core == NULL) + if (app.core == NULL) { discordPostInit = true; vlog_debug("app.core == null. DiscordCreate failed with a positive result?\nCheck DISCORD_REQUIRE for bugs."); @@ -143,7 +144,8 @@ int32_t DISCORD_init(void) void DISCORD_update(const char* area, const char* roomname) { - if(libHandle == NULL) { + if (libHandle == NULL) + { // no discord or just shutdown return; }