Retro.ModuleIterator

g GObject.Object GObject.Object Retro.ModuleIterator Retro.ModuleIterator GObject.Object->Retro.ModuleIterator

Subclasses:None

Methods

Inherited:GObject.Object (37)
Structs:GObject.ObjectClass (5)
class new (lookup_paths, recursive)
  get ()
  next ()

Virtual Methods

Inherited:GObject.Object (7)

Properties

None

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)

Class Details

class Retro.ModuleIterator(**kwargs)
Bases:GObject.Object
Abstract:No
Structure:Retro.ModuleIteratorClass
classmethod new(lookup_paths, recursive)
Parameters:
  • lookup_paths ([str]) – paths where to look for Libretro cores
  • recursive (bool) – whether to run the query in sub-directories
Returns:

a new Retro.ModuleIterator

Return type:

Retro.ModuleIterator

Creates a new Retro.ModuleIterator.

get()
Returns:a Retro.CoreDescriptor, or None
Return type:Retro.CoreDescriptor or None

Gets the last Retro.CoreDescriptor fetched by Retro.ModuleIterator.next(), or None if the end was reached.

next()
Returns:False if it reached the end, True otherwise
Return type:bool

Fetch the next Retro.ModuleIterator.