#[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§
Source§impl Clone for retro_system_info
impl Clone for retro_system_info
Source§fn clone(&self) -> retro_system_info
fn clone(&self) -> retro_system_info
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more