Move discord files to network/

This commit is contained in:
twinaphex 2020-05-20 15:27:27 +02:00
parent a8fdfd77ce
commit 03ea12d334
10 changed files with 18 additions and 14 deletions

View File

@ -1914,7 +1914,8 @@ ifeq ($(HAVE_NETWORKING), 1)
ifeq ($(HAVE_DISCORD), 1)
NEED_CXX_LINKER = 1
DEFINES += -DHAVE_DISCORD
INCLUDE_DIRS += -Ideps/discord-rpc/include/ -Ideps/discord-rpc/thirdparty/rapidjson-1.1.0/include/
INCLUDE_DIRS += -Ideps/discord-rpc/include \
-Ideps/discord-rpc/thirdparty/rapidjson-1.1.0/include/
ifneq ($(HAVE_THREADS), 1)
DEFINES += -DDISCORD_DISABLE_IO_THREAD
@ -1923,7 +1924,7 @@ ifeq ($(HAVE_NETWORKING), 1)
OBJ += deps/discord-rpc/src/discord_rpc.o \
deps/discord-rpc/src/rpc_connection.o \
deps/discord-rpc/src/serialization.o \
discord/discord.o
network/discord.o
ifneq ($(findstring Win32,$(OS)),)
OBJ += deps/discord-rpc/src/discord_register_win.o \

View File

@ -47,7 +47,7 @@
#endif
#ifdef HAVE_DISCORD
#include "../discord/discord.h"
#include "../network/discord.h"
#endif
#include "badges.h"

View File

@ -1495,7 +1495,7 @@ XML
HTTP SERVER
============================================================ */
#if defined(HAVE_DISCORD)
#include "../discord/discord.c"
#include "../network/discord.c"
#if defined(_WIN32)
#include "../deps/discord-rpc/src/discord_register_win.c"

View File

@ -32,7 +32,7 @@
#endif
#ifdef HAVE_DISCORD
#include "../../discord/discord.h"
#include "../../network/discord.h"
#endif
#include "../../config.def.h"

View File

@ -38,9 +38,9 @@
#include "../tasks/task_file_transfer.h"
#ifdef HAVE_NETWORKING
#include "../../network/netplay/netplay.h"
#include "../../network/netplay/netplay_discovery.h"
#include "../../tasks/tasks_internal.h"
#include "netplay/netplay.h"
#include "netplay/netplay_discovery.h"
#include "../tasks/tasks_internal.h"
#endif
#ifdef HAVE_CHEEVOS
@ -48,10 +48,10 @@
#endif
#ifdef HAVE_MENU
#include "../../menu/menu_cbs.h"
#include "../menu/menu_cbs.h"
#endif
#include "../network/net_http_special.h"
#include "net_http_special.h"
#include "../tasks/tasks_internal.h"
#include "../file_path_special.h"

View File

@ -27,7 +27,7 @@
#include <net/net_http.h>
#ifdef HAVE_DISCORD
#include <discord/discord.h>
#include "../discord.h"
#endif
#include <file/file_path.h>

View File

@ -29,10 +29,12 @@
#include "../../command.h"
#include "../../tasks/tasks_internal.h"
#include "../../discord/discord.h"
#ifdef HAVE_DISCORD
#include "../discord.h"
/* TODO/FIXME - global */
extern bool discord_is_inited;
#endif
static void handle_play_spectate(netplay_t *netplay, uint32_t client_num,
struct netplay_connection *connection, uint32_t cmd, uint32_t cmd_size,

View File

@ -167,7 +167,7 @@
#endif
#ifdef HAVE_DISCORD
#include "discord/discord.h"
#include "network/discord.h"
#endif
#ifdef HAVE_NETWORKING

View File

@ -108,8 +108,9 @@
#include "../paths.h"
#include "../verbosity.h"
#include "../discord/discord.h"
#include "../network/discord.h"
/* TODO/FIXME - get rid of this public global */
extern bool discord_is_inited;
#define MAX_ARGS 32