Skip to content

rc_client_get_game_info

Jamiras edited this page Jun 28, 2023 · 3 revisions

Gets information about the active game.

Syntax

const rc_client_game_t* rc_client_get_game_info(
    const rc_client_t* client
);

Parameters

client

The rc_client_t managing the game.

Return value

Pointer to a rc_client_game_t object containing information about the game, or NULL if no game is loaded.

May also point to a dummy record if a load attempt failed because the game could not be identified.


rc_client_game_t

typedef struct rc_client_game_t {
  uint32_t id;
  uint32_t console_id;
  const char* title;
  const char* hash;
  const char* badge_name;
} rc_client_game_t;

id

The unique identifier of the game.

console_id

The unique identifier of the console that the game belongs to.

title

The title of the game.

hash

The hash that resolved to the game.

badge_name

The unique identifier of the image that should be shown when loading or completing the game. See also rc_client_game_get_image_url.

Remarks

Minimum version: 11.0.0

See also

rc_client_begin_identify_and_load_game

rc_client_begin_load_game

rc_client_game_get_image_url

rc_client_get_achievement_info

rc_client_get_leaderboard_info

rc_client_unload_game

rcheevos

rc_client

Integration guide

client

user

game

processing

rc_client_raintegration

Integration guide

rc_runtime

rhash

rapi

common

user

runtime

info

Clone this wiki locally