mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
Move discord files to network/
This commit is contained in:
parent
a8fdfd77ce
commit
03ea12d334
@ -1914,7 +1914,8 @@ ifeq ($(HAVE_NETWORKING), 1)
|
|||||||
ifeq ($(HAVE_DISCORD), 1)
|
ifeq ($(HAVE_DISCORD), 1)
|
||||||
NEED_CXX_LINKER = 1
|
NEED_CXX_LINKER = 1
|
||||||
DEFINES += -DHAVE_DISCORD
|
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)
|
ifneq ($(HAVE_THREADS), 1)
|
||||||
DEFINES += -DDISCORD_DISABLE_IO_THREAD
|
DEFINES += -DDISCORD_DISABLE_IO_THREAD
|
||||||
@ -1923,7 +1924,7 @@ ifeq ($(HAVE_NETWORKING), 1)
|
|||||||
OBJ += deps/discord-rpc/src/discord_rpc.o \
|
OBJ += deps/discord-rpc/src/discord_rpc.o \
|
||||||
deps/discord-rpc/src/rpc_connection.o \
|
deps/discord-rpc/src/rpc_connection.o \
|
||||||
deps/discord-rpc/src/serialization.o \
|
deps/discord-rpc/src/serialization.o \
|
||||||
discord/discord.o
|
network/discord.o
|
||||||
|
|
||||||
ifneq ($(findstring Win32,$(OS)),)
|
ifneq ($(findstring Win32,$(OS)),)
|
||||||
OBJ += deps/discord-rpc/src/discord_register_win.o \
|
OBJ += deps/discord-rpc/src/discord_register_win.o \
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_DISCORD
|
#ifdef HAVE_DISCORD
|
||||||
#include "../discord/discord.h"
|
#include "../network/discord.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "badges.h"
|
#include "badges.h"
|
||||||
|
@ -1495,7 +1495,7 @@ XML
|
|||||||
HTTP SERVER
|
HTTP SERVER
|
||||||
============================================================ */
|
============================================================ */
|
||||||
#if defined(HAVE_DISCORD)
|
#if defined(HAVE_DISCORD)
|
||||||
#include "../discord/discord.c"
|
#include "../network/discord.c"
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#include "../deps/discord-rpc/src/discord_register_win.c"
|
#include "../deps/discord-rpc/src/discord_register_win.c"
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_DISCORD
|
#ifdef HAVE_DISCORD
|
||||||
#include "../../discord/discord.h"
|
#include "../../network/discord.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../config.def.h"
|
#include "../../config.def.h"
|
||||||
|
@ -38,9 +38,9 @@
|
|||||||
#include "../tasks/task_file_transfer.h"
|
#include "../tasks/task_file_transfer.h"
|
||||||
|
|
||||||
#ifdef HAVE_NETWORKING
|
#ifdef HAVE_NETWORKING
|
||||||
#include "../../network/netplay/netplay.h"
|
#include "netplay/netplay.h"
|
||||||
#include "../../network/netplay/netplay_discovery.h"
|
#include "netplay/netplay_discovery.h"
|
||||||
#include "../../tasks/tasks_internal.h"
|
#include "../tasks/tasks_internal.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CHEEVOS
|
#ifdef HAVE_CHEEVOS
|
||||||
@ -48,10 +48,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_MENU
|
#ifdef HAVE_MENU
|
||||||
#include "../../menu/menu_cbs.h"
|
#include "../menu/menu_cbs.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../network/net_http_special.h"
|
#include "net_http_special.h"
|
||||||
#include "../tasks/tasks_internal.h"
|
#include "../tasks/tasks_internal.h"
|
||||||
#include "../file_path_special.h"
|
#include "../file_path_special.h"
|
||||||
|
|
@ -27,7 +27,7 @@
|
|||||||
#include <net/net_http.h>
|
#include <net/net_http.h>
|
||||||
|
|
||||||
#ifdef HAVE_DISCORD
|
#ifdef HAVE_DISCORD
|
||||||
#include <discord/discord.h>
|
#include "../discord.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <file/file_path.h>
|
#include <file/file_path.h>
|
||||||
|
@ -29,10 +29,12 @@
|
|||||||
#include "../../command.h"
|
#include "../../command.h"
|
||||||
#include "../../tasks/tasks_internal.h"
|
#include "../../tasks/tasks_internal.h"
|
||||||
|
|
||||||
#include "../../discord/discord.h"
|
#ifdef HAVE_DISCORD
|
||||||
|
#include "../discord.h"
|
||||||
|
|
||||||
/* TODO/FIXME - global */
|
/* TODO/FIXME - global */
|
||||||
extern bool discord_is_inited;
|
extern bool discord_is_inited;
|
||||||
|
#endif
|
||||||
|
|
||||||
static void handle_play_spectate(netplay_t *netplay, uint32_t client_num,
|
static void handle_play_spectate(netplay_t *netplay, uint32_t client_num,
|
||||||
struct netplay_connection *connection, uint32_t cmd, uint32_t cmd_size,
|
struct netplay_connection *connection, uint32_t cmd, uint32_t cmd_size,
|
||||||
|
@ -167,7 +167,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_DISCORD
|
#ifdef HAVE_DISCORD
|
||||||
#include "discord/discord.h"
|
#include "network/discord.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_NETWORKING
|
#ifdef HAVE_NETWORKING
|
||||||
|
@ -108,8 +108,9 @@
|
|||||||
#include "../paths.h"
|
#include "../paths.h"
|
||||||
#include "../verbosity.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;
|
extern bool discord_is_inited;
|
||||||
|
|
||||||
#define MAX_ARGS 32
|
#define MAX_ARGS 32
|
||||||
|
Loading…
x
Reference in New Issue
Block a user