logo
pub unsafe fn set_variable(
    callback: retro_environment_t,
    value: retro_variable
) -> bool
Expand description

Allows an implementation to notify the frontend that a core option value has changed.

retro_variable::key and retro_variable::value must match strings that have been set previously via one of the following:

After changing a core option value via this callback, get_variable_update will return true.

If data is NULL, no changes will be registered and the callback will return true; an implementation may therefore pass NULL in order to test whether the callback is supported.