mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-01-23 08:02:07 -05:00
parent
d1739648e1
commit
130cfefa82
1 changed files with 8 additions and 2 deletions
|
@ -19,7 +19,10 @@
|
|||
#include "audio/external.h"
|
||||
#include "config.h"
|
||||
#include "pc/network/version.h"
|
||||
#include "pc/network/discord/discord.h"
|
||||
|
||||
#ifdef DISCORD_SDK
|
||||
#include "pc/network/discord/discord.h"
|
||||
#endif
|
||||
|
||||
#define MAIN_MENU_HEADER_TEXT "SM64 COOP"
|
||||
|
||||
|
@ -87,13 +90,16 @@ static void host_menu_draw_strings(void) {
|
|||
char warning[128];
|
||||
snprintf(warning, 127, "Port forward '%d' in network router settings or use Hamachi.", configHostPort);
|
||||
print_generic_ascii_string(0, 5, warning);
|
||||
} else if ((configNetworkSystem == 0) && gDiscordFailed) {
|
||||
}
|
||||
#ifdef DISCORD_SDK
|
||||
else if ((configNetworkSystem == 0) && gDiscordFailed) {
|
||||
f32 red = (f32)fabs(sin(gGlobalTimer / 20.0f));
|
||||
gDPSetEnvColor(gDisplayListHead++, 222, 222 * red, 222 * red, gMenuStringAlpha);
|
||||
char warning[128];
|
||||
snprintf(warning, 127, "Discord failed to initialize.");
|
||||
print_generic_ascii_string(0, 15, warning);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static void host_menu_do_host(void) {
|
||||
|
|
Loading…
Add table
Reference in a new issue