Path: blob/master/RSDKv5/RSDK/User/Core/UserPresence.hpp
1167 views
#ifndef USER_PRESENCE_H1#define USER_PRESENCE_H23namespace RSDK4{5namespace SKU6{7#if RETRO_REV0289// This is the base struct, it serves as the base for any API-specific stats10// This struct should never be removed11struct UserRichPresence {12virtual ~UserRichPresence() = default;1314virtual void StageLoad() {}15virtual void FrameInit() {}16virtual void OnUnknownEvent() {}17virtual void SetPresence(int32 id, String *message) {}1819int32 curID = 0;20};2122extern UserRichPresence *richPresence;2324// ====================25// API Cores26// ====================2728// Dummy API29#if RETRO_USERCORE_DUMMY30#include "RSDK/User/Dummy/DummyPresence.hpp"31#endif3233// Steam API34#if RETRO_USERCORE_STEAM35#include "RSDK/User/Steam/SteamPresence.hpp"36#endif3738// Epic Games API39#if RETRO_USERCORE_EOS40#include "RSDK/User/EOS/EOSPresence.hpp"41#endif4243// Switch API44#if RETRO_USERCORE_NX45#include "RSDK/User/NX/NXPresence.hpp"46#endif4748inline void SetPresence(int32 id, String *message) { richPresence->SetPresence(id, message); }49#endif5051} // namespace SKU52} // namespace RSDK5354#endif // USER_PRESENCE_H555657