mirror of
https://git.suyu.dev/suyu/discord-rpc.git
synced 2026-03-10 10:36:29 +00:00
Move some stuff, hook up connect/disconnect cbs
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
#include "discord-rpc.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "connection.h"
|
||||
#include "yolojson.h"
|
||||
|
||||
@@ -20,6 +18,8 @@ void Discord_Initialize(const char* applicationId, DiscordEventHandlers* handler
|
||||
}
|
||||
|
||||
MyConnection = RpcConnection::Create();
|
||||
MyConnection->onConnect = Handlers.ready;
|
||||
MyConnection->onDisconnect = Handlers.disconnected;
|
||||
MyConnection->Open();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user