mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Add Discord Join Net Play functionally
This commit is contained in:
@ -4,10 +4,24 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
using JoinFunction = std::function<void()>;
|
||||
|
||||
enum class SecretType : char
|
||||
{
|
||||
Empty,
|
||||
IPAddress,
|
||||
RoomID,
|
||||
};
|
||||
|
||||
void Init();
|
||||
void UpdateDiscordPresence();
|
||||
void InitNetPlayFunctionality(const JoinFunction& join);
|
||||
void CallPendingCallbacks();
|
||||
void UpdateDiscordPresence(int party_size = 0, SecretType type = SecretType::Empty,
|
||||
const std::string& secret = {});
|
||||
void Shutdown();
|
||||
void SetDiscordPresenceEnabled(bool enabled);
|
||||
} // namespace Discord
|
||||
|
Reference in New Issue
Block a user