diff --git a/Makefile.common b/Makefile.common index 752640c0ae..048f3f67d2 100644 --- a/Makefile.common +++ b/Makefile.common @@ -2197,6 +2197,8 @@ ifeq ($(HAVE_NETWORKING), 1) deps/discord-rpc/src/rpc_connection.o \ deps/discord-rpc/src/serialization.o + OBJ += network/discord.o + ifneq ($(findstring Win32,$(OS)),) OBJ += deps/discord-rpc/src/discord_register_win.o \ deps/discord-rpc/src/connection_win.o diff --git a/griffin/griffin.c b/griffin/griffin.c index be65f8b523..a209d0642c 100644 --- a/griffin/griffin.c +++ b/griffin/griffin.c @@ -1575,6 +1575,7 @@ XML HTTP SERVER ============================================================ */ #if defined(HAVE_DISCORD) +#include "../network/discord.c" #if defined(_WIN32) #include "../deps/discord-rpc/src/discord_register_win.c" #endif diff --git a/network/discord.c b/network/discord.c new file mode 100644 index 0000000000..ac86808384 --- /dev/null +++ b/network/discord.c @@ -0,0 +1,487 @@ +/* RetroArch - A frontend for libretro. + * Copyright (C) 2011-2021 - Daniel De Matteis + * Copyright (C) 2016-2019 - Andr�s Su�rez + * + * RetroArch is free software: you can redistribute it and/or modify it under the terms + * of the GNU General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with RetroArch. + * If not, see . + */ + +#include +#include +#include +#include +#include +#include