logo
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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. 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

Performs the conversion.

Performs the conversion.

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.