Files

33 lines
870 B
C

#pragma once
// Wrappers around the 4J profile library's Xbox Live entitlement queries.
// Include this after stdafx.h; it needs ProfileManager to be declared.
inline bool Live_MultiplayerAllowed(int iPad)
{
#ifdef _DISABLE_XBLIVE
return true;
#else
return ProfileManager.IsSignedInLive(iPad) && ProfileManager.AllowedToPlayMultiplayer(iPad);
#endif
}
inline bool Live_AllowedToPlayMultiplayer(int iPad)
{
#ifdef _DISABLE_XBLIVE
return true;
#else
return ProfileManager.AllowedToPlayMultiplayer(iPad);
#endif
}
inline void Live_AllowedPlayerCreatedContent(int iPad, bool thisQuadrantOnly, BOOL *allAllowed, BOOL *friendsAllowed)
{
#ifdef _DISABLE_XBLIVE
if(allAllowed != NULL) *allAllowed = TRUE;
if(friendsAllowed != NULL) *friendsAllowed = TRUE;
#else
ProfileManager.AllowedPlayerCreatedContent(iPad, thisQuadrantOnly, allAllowed, friendsAllowed);
#endif
}