Beispiel #1
0
def load_consoles(emulators, filesystem, override = None):
  path = settings_file_path('consoles.txt', filesystem, override)
  logger.debug("Loading consoles from path: %s" % path)
  return BackedObjectManager(
    ConfigFileBackingStore(path),
    ConsoleBackedObjectAdapter(emulators)
  )
Beispiel #2
0
def load_emulators(filesystem, override = None):
  path = settings_file_path('emulators.txt', filesystem, override)
  logger.debug("Loading emulators from path: %s" % path)
  return BackedObjectManager(
    ConfigFileBackingStore(path),
    EmulatorBackedObjectAdapter(filesystem)
  )
Beispiel #3
0
def load_configuration(filesystem, override=None):
    path = settings_file_path('config.txt', filesystem, override)
    logger.debug("Loading config from path: %s" % path)
    return configuration.from_store(ConfigFileBackingStore(path))