mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-13 13:21:31 +00:00
Discord Invite Fixes + DUMPCONSISTENCY flag for makefile
This commit is contained in:
parent
6e33b5281d
commit
d7e8642236
2 changed files with 6 additions and 5 deletions
|
@ -515,6 +515,10 @@ ifdef ZDEBUG
|
||||||
CPPFLAGS+=-DZDEBUG
|
CPPFLAGS+=-DZDEBUG
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef DUMPCONSISTENCY
|
||||||
|
CPPFLAGS+=-DDUMPCONSISTENCY
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef DEVELOP
|
ifdef DEVELOP
|
||||||
CPPFLAGS+=-DDEVELOP
|
CPPFLAGS+=-DDEVELOP
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -361,7 +361,7 @@ static const char *DRPC_GetServerIP(void)
|
||||||
{
|
{
|
||||||
// We're not the server, so we could successfully get the IP!
|
// We're not the server, so we could successfully get the IP!
|
||||||
// No need to do anything else :)
|
// No need to do anything else :)
|
||||||
sprintf(self_ip, "%s:%u", address, current_port);
|
strcpy(self_ip, address);
|
||||||
return self_ip;
|
return self_ip;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -461,10 +461,7 @@ void DRPC_UpdatePresence(void)
|
||||||
// Grab the host's IP for joining.
|
// Grab the host's IP for joining.
|
||||||
if ((join = DRPC_GetServerIP()) != NULL)
|
if ((join = DRPC_GetServerIP()) != NULL)
|
||||||
{
|
{
|
||||||
char *xorjoin = DRPC_XORIPString(join);
|
discordPresence.joinSecret = DRPC_XORIPString(join);
|
||||||
discordPresence.joinSecret = xorjoin;
|
|
||||||
free(xorjoin);
|
|
||||||
|
|
||||||
joinSecretSet = true;
|
joinSecretSet = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue