ppsspp/UI/DiscordIntegration.h
Unknown W. Brackets 2479d52202 Global: Reduce includes of common headers.
In many places, string, map, or Common.h were included but not needed.
2022-01-30 16:35:33 -08:00

28 lines
607 B
C++

#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();
private:
void Init();
bool IsEnabled() const;
bool initialized_ = false;
};
extern Discord g_Discord;