Hide sm64coopdx Discord status for now

This commit is contained in:
Agent X 2023-11-26 20:31:39 -05:00
parent 5cb9e25090
commit 3498aec703
2 changed files with 6 additions and 1 deletions

View file

@ -124,7 +124,8 @@ static void discord_initialize(void) {
// set up discord params
struct DiscordCreateParams params = { 0 };
DiscordCreateParamsSetDefault(&params);
params.client_id = gCoopCompatibility ? APPLICATION_ID_COOP : APPLICATION_ID_COOPDX; // you have to have activity status on if you don't want discord to prompt you to authorize on every boot
// params.client_id = gCoopCompatibility ? APPLICATION_ID_COOP : APPLICATION_ID_COOPDX; // you have to have activity status on if you don't want discord to prompt you to authorize on every boot
params.client_id = APPLICATION_ID_COOP; // hide sm64coopdx for now
params.flags = DiscordCreateFlags_NoRequireDiscord;
params.event_data = &app;
params.user_events = discord_user_initialize();

View file

@ -1,4 +1,5 @@
#include "discord.h"
#include "pc/pc_main.h"
#include "pc/djui/djui.h"
#include "pc/mods/mods.h"
#include "pc/debuglog.h"
@ -67,7 +68,10 @@ static void strncat_len(char* destination, char* source, size_t destinationLengt
static void discord_populate_details(char* buffer, int bufferLength) {
// get version
bool stored = gCoopCompatibility;
gCoopCompatibility = true;
const char* version = get_version();
gCoopCompatibility = stored;
int versionLength = strlen(version);
snprintf(buffer, bufferLength, "%s", version);
buffer += versionLength;