Retro.CoreDescriptor

g GObject.Object GObject.Object Retro.CoreDescriptor Retro.CoreDescriptor GObject.Object->Retro.CoreDescriptor

Subclasses:None

Methods

Inherited:GObject.Object (37)
Structs:GObject.ObjectClass (5)
class new (filename)
  get_firmware_md5 (firmware)
  get_firmware_path (firmware)
  get_firmware_sha512 (firmware)
  get_firmwares (platform)
  get_icon ()
  get_id ()
  get_is_emulator ()
  get_is_firmware_mandatory (firmware)
  get_is_game ()
  get_mime_type (platform)
  get_module ()
  get_module_file ()
  get_name ()
  get_platform_supports_mime_types (platform, mime_types)
  get_uri ()
  has_firmware_md5 (firmware)
  has_firmware_sha512 (firmware)
  has_firmwares (platform)
  has_icon ()
  has_platform (platform)

Virtual Methods

Inherited:GObject.Object (7)

Properties

None

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)

Class Details

class Retro.CoreDescriptor(**kwargs)
Bases:GObject.Object
Abstract:No
Structure:Retro.CoreDescriptorClass
classmethod new(filename)
Parameters:filename (str) – the file name of the core descriptor
Raises:GLib.Error
Returns:a new Retro.CoreDescriptor
Return type:Retro.CoreDescriptor

Creates a new Retro.CoreDescriptor.

get_firmware_md5(firmware)
Parameters:firmware (str) – a firmware name
Raises:GLib.Error
Returns:a string or None, free it with GLib.free()
Return type:str or None

Gets the MD5 fingerprint of the firmware file, or None.

get_firmware_path(firmware)
Parameters:firmware (str) – a firmware name
Raises:GLib.Error
Returns:a string or None, free it with GLib.free()
Return type:str or None

Gets the demanded path to the firmware file, or None.

get_firmware_sha512(firmware)
Parameters:firmware (str) – a firmware name
Raises:GLib.Error
Returns:a string or None, free it with GLib.free()
Return type:str or None

Gets the SHA512 fingerprint of the firmware file, or None.

get_firmwares(platform)
Parameters:platform (str) – a platform name
Raises:GLib.Error
Returns:a None-terminated string array or None, the array should be freed with GLib.strfreev()
Return type:[str]

Gets the list of firmwares used by the core for this platform.

get_icon()
Raises:GLib.Error
Returns:a Gio.Icon or None
Return type:Gio.Icon or None

Gets the icon, or None if it doesn’t exist.

get_id()
Returns:the ID of self, free it with GLib.free()
Return type:str

Gets the ID of self.

get_is_emulator()
Raises:GLib.Error
Returns:whether the core is an emulator
Return type:bool

Gets whether the core is an emulator, and hence need games to be loaded.

get_is_firmware_mandatory(firmware)
Parameters:firmware (str) – a firmware name
Raises:GLib.Error
Returns:whether the firmware is mandatory for the core to function
Return type:bool

Gets whether the firmware is mandatory for the core to function.

get_is_game()
Raises:GLib.Error
Returns:whether the core is a game
Return type:bool

Gets whether the core is a game, and hence can’t load games.

get_mime_type(platform)
Parameters:platform (str) – a platform name
Raises:GLib.Error
Returns:a None-terminated string array or None, the array should be freed with GLib.strfreev()
Return type:[str]

Gets the list of MIME types accepted used by the core for this platform.

get_module()
Raises:GLib.Error
Returns:a string or None, free it with GLib.free()
Return type:str or None

Gets the module file name, or None if it doesn’t exist.

get_module_file()
Raises:GLib.Error
Returns:a Gio.File or None
Return type:Gio.File or None

Gets the module file, or None if it doesn’t exist.

get_name()
Raises:GLib.Error
Returns:a string or None, free it with GLib.free()
Return type:str or None

Gets the name, or None if it doesn’t exist.

get_platform_supports_mime_types(platform, mime_types)
Parameters:
  • platform (str) – a platform name
  • mime_types ([str]) – the MIME types
Raises:

GLib.Error

Returns:

whether the platform supports all of the given MIME types

Return type:

bool

Gets whether the platform supports all of the given MIME types.

get_uri()
Returns:the URI of the file of self, free it with GLib.free()
Return type:str

Gets the URI of the file of self.

has_firmware_md5(firmware)
Parameters:firmware (str) – a firmware name
Raises:GLib.Error
Returns:whether the firmware declares its MD5 fingerprint
Return type:bool

Gets whether the firmware declares its MD5 fingerprint.

has_firmware_sha512(firmware)
Parameters:firmware (str) – a firmware name
Raises:GLib.Error
Returns:whether the firmware declares its SHA512 fingerprint
Return type:bool

Gets whether the firmware declares its SHA512 fingerprint.

has_firmwares(platform)
Parameters:platform (str) – a platform name
Raises:GLib.Error
Returns:whether the platform has associated firmwares
Return type:bool

Gets whether the platform has associated firmwares.

has_icon()
Raises:GLib.Error
Returns:whether the core has an icon
Return type:bool

Gets whether the core has an icon.

has_platform(platform)
Parameters:platform (str) – a platform name
Returns:whether the core descriptor declares the given platform
Return type:bool

Gets whether the core descriptor declares the given platform.