retro_get_image_label_t

Type Alias retro_get_image_label_t 

Source
pub type retro_get_image_label_t = Option<unsafe extern "C" fn(index: c_uint, label: *mut c_char, len: usize) -> bool>;
Expand description

Fetches a core-provided ‘label’ for the specified disk image file. In the simplest case this may be a file name (without extension), but for cores with more complex content requirements information may be provided to facilitate user disk swapping - for example, a core running floppy-disk-based content may uniquely label save disks, data disks, level disks, etc. with names corresponding to in-game disk change prompts (so the frontend can provide better user guidance than a ‘dumb’ disk index value). Returns ‘false’ if index is invalid (index >= get_num_images()) or label is otherwise unavailable.

Aliased Type§

pub enum retro_get_image_label_t {
    None,
    Some(unsafe extern "C" fn(u32, *mut i8, usize) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(u32, *mut i8, usize) -> bool)

Some value of type T.