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:
retro_game_info::path
is guaranteed to have a valid pathretro_game_info::data
andretro_game_info::size
are invalid
If need_fullpath
is false
and Core::on_load_game
is called:
retro_game_info::path
may be NULLretro_game_info::data
andretro_game_info::size
are guaranteed to be valid
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.