ppsspp/UI/DiscordIntegration.h

28 lines
607 B
C
Raw Permalink Normal View History

2018-08-13 00:08:56 +02:00
#pragma once
// Simple wrapper around the Discord api.
// All platforms should call it, but we only actually take action on
// platforms where we want it enabled (only PC initially).
// All you need to call is FrameCallback, Shutdown, and UpdatePresence.
class Discord {
public:
~Discord();
void Update(); // Call every frame or at least regularly. Will initialize if necessary.
void Shutdown();
void SetPresenceGame(const char *gameTitle);
void SetPresenceMenu();
void ClearPresence();
2018-08-13 00:08:56 +02:00
private:
void Init();
bool IsEnabled() const;
bool initialized_ = false;
};
extern Discord g_Discord;