mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Cleanup
This commit is contained in:
parent
4a388668a3
commit
c8940c130d
13
deps/discord-rpc/src/discord_rpc.cpp
vendored
13
deps/discord-rpc/src/discord_rpc.cpp
vendored
@ -15,19 +15,6 @@
|
||||
#include <thread>
|
||||
#endif
|
||||
|
||||
|
||||
/* Forward declarations */
|
||||
#if defined(__cplusplus) && !defined(CXX_BUILD)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void Discord_Register(const char *a, const char *b);
|
||||
void Discord_RegisterSteamGame(const char *a, const char *b);
|
||||
|
||||
#if defined(__cplusplus) && !defined(CXX_BUILD)
|
||||
}
|
||||
#endif
|
||||
|
||||
struct QueuedMessage
|
||||
{
|
||||
size_t length;
|
||||
|
5
deps/discord-rpc/src/rpc_connection.cpp
vendored
5
deps/discord-rpc/src/rpc_connection.cpp
vendored
@ -3,7 +3,8 @@
|
||||
|
||||
#include <atomic>
|
||||
|
||||
static const int RpcVersion = 1;
|
||||
#define RPC_VERSION 1
|
||||
|
||||
static RpcConnection Instance;
|
||||
|
||||
/*static*/ RpcConnection* RpcConnection::Create(const char* applicationId)
|
||||
@ -52,7 +53,7 @@ void RpcConnection::Open()
|
||||
{
|
||||
sendFrame.opcode = Opcode::Handshake;
|
||||
sendFrame.length = (uint32_t)JsonWriteHandshakeObj(
|
||||
sendFrame.message, sizeof(sendFrame.message), RpcVersion, appId);
|
||||
sendFrame.message, sizeof(sendFrame.message), RPC_VERSION, appId);
|
||||
|
||||
if (connection->Write(&sendFrame,
|
||||
sizeof(MessageFrameHeader) + sendFrame.length))
|
||||
|
Loading…
x
Reference in New Issue
Block a user