1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

Finish formatting

This commit is contained in:
Buggem's Fedora PC 2024-12-22 12:18:40 +11:00
parent d35fb29541
commit 9c05ffed34

View file

@ -51,7 +51,8 @@ static void* libHandle = NULL;
FUNC_LIST FUNC_LIST
#undef FOREACH_FUNC #undef FOREACH_FUNC
bool DISCORD_REQUIRE(int x) { bool DISCORD_REQUIRE(int x)
{
if (!discordDetected && discordPostInit) if (!discordDetected && discordPostInit)
{ {
return false; return false;
@ -112,7 +113,7 @@ int32_t DISCORD_init(void)
params.client_id = DISCORD_CLIENT_ID; params.client_id = DISCORD_CLIENT_ID;
params.flags = DiscordCreateFlags_NoRequireDiscord; params.flags = DiscordCreateFlags_NoRequireDiscord;
if(!DISCORD_REQUIRE(DiscordCreate(DISCORD_VERSION, &params, &app.core))) if (!DISCORD_REQUIRE(DiscordCreate(DISCORD_VERSION, &params, &app.core)))
{ // Discord's API couldn't initialise, so just ignore it { // Discord's API couldn't initialise, so just ignore it
discordPostInit = true; // even if it fails, set post init to true. discordPostInit = true; // even if it fails, set post init to true.
vlog_debug("Discord API failed to initialise!"); vlog_debug("Discord API failed to initialise!");
@ -120,7 +121,7 @@ int32_t DISCORD_init(void)
return 0; return 0;
} }
if(app.core == NULL) if (app.core == NULL)
{ {
discordPostInit = true; discordPostInit = true;
vlog_debug("app.core == null. DiscordCreate failed with a positive result?\nCheck DISCORD_REQUIRE for bugs."); 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) void DISCORD_update(const char* area, const char* roomname)
{ {
if(libHandle == NULL) { if (libHandle == NULL)
{
// no discord or just shutdown // no discord or just shutdown
return; return;
} }