mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-01 18:21:11 +01:00
28 lines
611 B
C++
28 lines
611 B
C++
// Copyright 2018 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <functional>
|
|
|
|
namespace Discord
|
|
{
|
|
using JoinFunction = std::function<void()>;
|
|
|
|
enum class SecretType : char
|
|
{
|
|
Empty,
|
|
IPAddress,
|
|
RoomID,
|
|
};
|
|
|
|
void Init();
|
|
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
|