mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-01-03 14:11:10 +00:00
Hide sm64coopdx Discord status for now
This commit is contained in:
parent
5cb9e25090
commit
3498aec703
2 changed files with 6 additions and 1 deletions
|
@ -124,7 +124,8 @@ static void discord_initialize(void) {
|
|||
// set up discord params
|
||||
struct DiscordCreateParams params = { 0 };
|
||||
DiscordCreateParamsSetDefault(¶ms);
|
||||
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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue