Skip to content

rc_client_raintegration_set_write_memory_function

Jamiras edited this page Feb 22, 2024 · 1 revision

Provides a callback for writing memory to the emulator.

Syntax

void rc_client_raintegration_set_write_memory_function(
    rc_client_t* client,
    rc_client_raintegration_write_memory_func_t  handler
);

Parameters

client

The rc_client_t to associate the handler to.

handler

Function to call to write memory to the emulator


rc_client_raintegration_write_memory_func_t

void (*rc_client_raintegration_write_memory_func_t )(
    uint32_t address,
    uint8_t* buffer,
    uint32_t num_bytes,
    rc_client_t* client
);

address

The RetroAchievements address to begin writing to.

Note that RetroAchievements addresses usually do not accurately represent emulator memory addresses. There is usually a direct mapping though.

buffer

A pointer to a buffer that should be copied from.

num_bytes

The number of bytes that should be copied from buffer.

client

The rc_client_t that's sending the data.

Remarks

Minimum version: 11.2.0

See also

rc_client_begin_load_raintegration

rc_client_set_read_memory_function

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