mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 03:55:11 +00:00
Fix compilation error with DISCORD_SDK=0
This commit is contained in:
parent
236231ded1
commit
ae58081f54
3 changed files with 12 additions and 0 deletions
|
@ -7,11 +7,15 @@
|
|||
#include "djui_panel_main.h"
|
||||
#include "pc/network/network.h"
|
||||
#include "pc/utils/misc.h"
|
||||
#ifdef DISCORD_SDK
|
||||
#include "pc/discord/discord.h"
|
||||
#endif
|
||||
|
||||
#ifdef COOPNET
|
||||
static void djui_panel_compatibility_checkbox_on_value_change(UNUSED struct DjuiBase* caller) {
|
||||
#ifdef DISCORD_SDK
|
||||
gDiscordInitialized = false;
|
||||
#endif
|
||||
if (gVersionText != NULL) {
|
||||
djui_text_set_text(gVersionText, get_version_local());
|
||||
}
|
||||
|
|
|
@ -14,12 +14,16 @@
|
|||
#include "pc/configfile.h"
|
||||
#include "pc/debuglog.h"
|
||||
#include "macros.h"
|
||||
#ifdef DISCORD_SDK
|
||||
#include "pc/discord/discord.h"
|
||||
#endif
|
||||
|
||||
static struct DjuiInputbox* sInputboxIp = NULL;
|
||||
#ifndef COOPNET
|
||||
static void djui_panel_compatibility_checkbox_on_value_change(UNUSED struct DjuiBase* caller) {
|
||||
#ifdef DISCORD_SDK
|
||||
gDiscordInitialized = false;
|
||||
#endif
|
||||
if (gVersionText != NULL) {
|
||||
djui_text_set_text(gVersionText, get_version_local());
|
||||
}
|
||||
|
|
|
@ -10,10 +10,14 @@
|
|||
#include "pc/utils/misc.h"
|
||||
#include "pc/configfile.h"
|
||||
#include "game/hardcoded.h"
|
||||
#ifdef DISCORD_SDK
|
||||
#include "pc/discord/discord.h"
|
||||
#endif
|
||||
|
||||
static void djui_panel_compatibility_checkbox_on_value_change(UNUSED struct DjuiBase* caller) {
|
||||
#ifdef DISCORD_SDK
|
||||
gDiscordInitialized = false;
|
||||
#endif
|
||||
if (gVersionText != NULL) {
|
||||
djui_text_set_text(gVersionText, get_version_local());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue