#[repr(C)]
pub struct retro_system_info { pub library_name: *const c_char, pub library_version: *const c_char, pub valid_extensions: *const c_char, pub need_fullpath: bool, pub block_extract: bool, }

Fields§

§library_name: *const c_char

Descriptive name of library. Should not contain any version numbers, etc.

§library_version: *const c_char

Descriptive version of core.

§valid_extensions: *const c_char

A string listing probably content extensions the core will be able to load, separated with pipe. I.e. “bin|rom|iso”. Typically used for a GUI to filter out extensions.

§need_fullpath: bool

Libretro cores that need to have direct access to their content files, including cores which use the path of the content files to determine the paths of other files, should set need_fullpath to true.

Cores should strive for setting need_fullpath to false, as it allows the frontend to perform patching, etc.

If need_fullpath is true and retro_load_game() is called:

  • retro_game_info::path is guaranteed to have a valid path
  • retro_game_info::data and retro_game_info::size are invalid

If need_fullpath is false and retro_load_game() is called:

  • retro_game_info::path may be NULL
  • retro_game_info::data and retro_game_info::size are guaranteed to be valid

See also:

  • RETRO_ENVIRONMENT_GET_SYSTEM_DIRECTORY
  • RETRO_ENVIRONMENT_GET_SAVE_DIRECTORY
§block_extract: bool

If true, the frontend is not allowed to extract any archives before loading the real content. Necessary for certain libretro implementations that load games from zipped archives.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.