Skip to content

rc_client_raintegration_set_get_game_name_function

Jamiras edited this page Feb 22, 2024 · 1 revision

Provides a callback for getting the name of the currently loaded game.

Syntax

void rc_client_raintegration_set_get_game_name_function(
    rc_client_t* client,
    rc_client_raintegration_get_game_name_func_t handler
);

Parameters

client

The rc_client_t to associate the handler to.

handler

Function to call to get the name of the currently loaded game.


rc_client_raintegration_get_game_name_func_t

void (*rc_client_raintegration_get_game_name_func_t )(
    char* buffer,
    uint32_t buffer_size,
    rc_client_t* client
);

buffer

A pointer to a buffer that should be filled with the game name.

num_bytes

The number of characters that can be written to buffer.

client

The rc_client_t that's requesting the data.

Remarks

The game name returned is usually just the filename without the path or extension.

Minimum version: 11.2.0

See also

rc_client_begin_load_raintegration

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