retro_replace_image_index_t

Type Alias retro_replace_image_index_t 

Source
pub type retro_replace_image_index_t = Option<unsafe extern "C" fn(index: c_uint, info: *const retro_game_info) -> bool>;
Expand description

Replaces the disk image associated with index. Arguments to pass in info have same requirements as retro_load_game(). Virtual disk tray must be ejected when calling this.

Replacing a disk image with info = NULL will remove the disk image from the internal list. As a result, calls to get_image_index() can change.

E.g. replace_image_index(1, NULL), and previous get_image_index() returned 4 before. Index 1 will be removed, and the new index is 3.

Aliased Type§

pub enum retro_replace_image_index_t {
    None,
    Some(unsafe extern "C" fn(u32, *const retro_game_info) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(u32, *const retro_game_info) -> bool)

Some value of type T.