Struct rust_libretro_sys::retro_system_info
source · [−]#[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_charDescriptive name of library. Should not contain any version numbers, etc.
library_version: *const c_charDescriptive version of core.
valid_extensions: *const c_charA 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: boolLibretro 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: boolIf 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
sourceimpl Clone for retro_system_info
impl Clone for retro_system_info
sourcefn clone(&self) -> retro_system_info
fn clone(&self) -> retro_system_info
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for retro_system_info
impl Debug for retro_system_info
impl Copy for retro_system_info
Auto Trait Implementations
impl RefUnwindSafe for retro_system_info
impl !Send for retro_system_info
impl !Sync for retro_system_info
impl Unpin for retro_system_info
impl UnwindSafe for retro_system_info
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
