set_core_options_display

Function set_core_options_display 

Source
pub unsafe fn set_core_options_display(
    callback: retro_environment_t,
    options: retro_core_option_display,
) -> bool
Expand description

Allows an implementation to signal the environment to show or hide a variable when displaying core options. This is considered a suggestion. The frontend is free to ignore this callback, and its implementation not considered mandatory.

‘data’ points to a retro_core_option_display struct

retro_core_option_display::key is a variable identifier which has already been set by set_variables / set_core_options.

retro_core_option_display::visible is a boolean, specifying whether variable should be displayed

Note that all core option variables will be set visible by default when calling set_variables / set_core_options.