sakeSetGame

GameSpy SDK

sakeSetGame

Authenticates the game to use Sake.

void sakeSetGame(
SAKE sake,
const char * gameName,
int gameId,
const char * secretKey );
RoutineRequired HeaderDistribution
sakeSetGame<sake.h>SDKZIP

Parameters

sake
[in] The Sake object.
gameName
[in] Your title's gamename, assigned by GameSpy.
gameId
[in] Your title's gameid, assigned by GameSpy.
secretKey
[in] Your title's secret key , assigned by GameSpy.

Remarks

The function provides no indication of whether or not the gamename and gameid are correct. The backend will simply check them and use the information to figure out which game’s database is being used.

The game should also call sakeSetProfile to authenticate the current player before continuing with any other Sake usage.

Section Reference: Gamespy Sake SDK

See Also: sakeSetProfile