Skip to content

rc_runtime_activate_richpresence

Jamiras edited this page Sep 7, 2020 · 1 revision

Loads a rich presence script into the runtime.

Syntax

int rc_runtime_activate_richpresence(
    rc_runtime_t* runtime,
    const char* script,
    lua_State* L,
    int funcs_idx
);

Parameters

runtime

Pointer to the runtime object that will contain the leaderboard definition.

script

A null-terminated string that defines the rich presence.

L (NOT USED)

A pointer to a lua_State that contains the LUA functions needed by the rich presence script. May be NULL if the rich presence script does not use LUA functions.

funcs_index (NOT USED)

The index to the functions table in the lua_State.

Return value

If the function succeeds, the return value is RC_OK. Otherwise, the error code can be converted to a string using rc_error_str.

Remarks

Only one rich presence script may exist. Calling this function again will overwrite the previous script.

Minimum version: 9.0.0

See also

rc_runtime_init

rc_runtime_get_richpresence

rc_runtime_do_frame

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