Skip to content

rc_client_achievement_get_image_url

Jamiras edited this page Jun 1, 2023 · 1 revision

Gets the URL for an achievement's image.

Syntax

int rc_client_achievement_get_image_url(
    const rc_client_achievement_t* achievement,
    int state,
    char buffer[],
    size_t buffer_size
);

Parameters

achievement

The rc_client_achievement_t retrieved from rc_client_get_achievement_info or rc_client_create_achievement_list.

May be NULL to retrieve the URL for the placeholder badge image.

state

The state of the achievement badge to generate a URL for (usually achievement->state).

RC_ACHIEVEMENT_STATE_UNLOCKED will generate the URL for the unlocked (colorized) version of the badge. Any other state will generate the URL for the locked (greyscale) version of the badge.

buffer

A buffer to populate with the URL.

buffer_size

The number of characters that the buffer can hold.

Return value

RC_OK on success, or RC_INVALID_STATE if buffer is not provided.

Remarks

Minimum version: 11.0.0

See also

rc_client_get_achievement_info

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