mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-04 05:55:31 +02:00
Only set DiscordCreateParams to default once, whoopsie
This commit is contained in:
parent
b78b1187cd
commit
86fd44888f
1 changed files with 2 additions and 3 deletions
|
@ -91,8 +91,6 @@ void discordLogHook(void *hook_data, enum EDiscordLogLevel level, const char *me
|
||||||
int discordTryConnect(DiscordStatePrivate *p)
|
int discordTryConnect(DiscordStatePrivate *p)
|
||||||
{
|
{
|
||||||
|
|
||||||
DiscordCreateParamsSetDefault(&p->params);
|
|
||||||
|
|
||||||
int rc = DiscordCreate(DISCORD_VERSION, &p->params, &p->core);
|
int rc = DiscordCreate(DISCORD_VERSION, &p->params, &p->core);
|
||||||
|
|
||||||
if (rc != DiscordResult_NotInstalled)
|
if (rc != DiscordResult_NotInstalled)
|
||||||
|
@ -130,7 +128,8 @@ DiscordState::DiscordState(RGSSThreadData *rtData)
|
||||||
p->threadData = rtData;
|
p->threadData = rtData;
|
||||||
memset(&p->app, 0, sizeof(Application));
|
memset(&p->app, 0, sizeof(Application));
|
||||||
|
|
||||||
memset(&p->params, 0, sizeof(DiscordCreateParams));
|
DiscordCreateParamsSetDefault(&p->params);
|
||||||
|
|
||||||
memset(&p->activityEvents, 0, sizeof(IDiscordActivityEvents));
|
memset(&p->activityEvents, 0, sizeof(IDiscordActivityEvents));
|
||||||
memset(&p->userEvents, 0, sizeof(IDiscordUserEvents));
|
memset(&p->userEvents, 0, sizeof(IDiscordUserEvents));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue