Skip to content

rc_client_progress_size

Jamiras edited this page Jul 1, 2023 · 2 revisions

Calculates how much space is required to store the current state of the runtime.

Syntax

size_t rc_client_progress_size(
    rc_client_t* client
);

Parameters

client

The rc_client_t containing a loaded game.

Return value

The number of bytes required for a buffer passed to rc_client_serialize_progress.

Remarks

After the game has been fully loaded (the callback of rc_client_begin_load_game or rc_client_begin_identify_and_load_game has been called), the required buffer size is guaranteed not to go up unless additional achievements are enabled by disabling hardcore. This assertion can be used to preallocate a number of internal save state buffers for functionality like rewind.

The value may go down as achievements are unlocked. The extra space is simply ignored when serializing.

Minimum version: 11.0.0

See also

rc_client_serialize_progress

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