Struct SystemInfo

Source
pub struct SystemInfo {
    pub library_name: CString,
    pub library_version: CString,
    pub valid_extensions: CString,
    pub need_fullpath: bool,
    pub block_extract: bool,
}
Expand description

Static information about the Core implementation.

Fields§

§library_name: CString

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

§library_version: CString

Descriptive version of the core.

§valid_extensions: CString

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 Core::on_load_game is called:

If need_fullpath is false and Core::on_load_game is called:

See also:

§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 Debug for SystemInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SystemInfo

Source§

fn default() -> SystemInfo

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.