logo
pub unsafe fn get_disk_control_interface_version(
    callback: retro_environment_t
) -> u32
Expand description

Unsigned value is the API version number of the disk control interface supported by the frontend. If callback return false, API version is assumed to be 0.

In legacy code, the disk control interface is defined by passing a struct of type retro_disk_control_callback] to [set_disk_control_interface`. This may be still be done regardless of the disk control interface version.

If version is >= 1 however, the disk control interface may instead be defined by passing a struct of type retro_disk_control_ext_callback to set_disk_control_ext_interface. This allows the core to provide additional information about disk images to the frontend and/or enables extra disk control functionality by the frontend.