Struct rust_libretro::types::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: CStringDescriptive name of library. Should not contain any version numbers, etc.
library_version: CStringDescriptive version of the core.
valid_extensions: CStringA 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 Core::on_load_game is called:
retro_game_info::pathis guaranteed to have a valid pathretro_game_info::dataandretro_game_info::sizeare invalid
If need_fullpath is false and Core::on_load_game is called:
retro_game_info::pathmay be NULLretro_game_info::dataandretro_game_info::sizeare guaranteed to be valid
See also:
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
Returns the “default value” for a type. Read more
