예제 #1
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)
  )
예제 #2
0
 def __init__(self, config_store, consoles_store, emulators_store):
     self.config_backing_store = config_store
     self.consoles_backing_store = consoles_store
     self.emulators_backing_store = emulators_store
     self.emulator_manager = BackedObjectManager(
         emulators_store, EmulatorBackedObjectAdapter())
     self.console_manager = BackedObjectManager(
         consoles_store, ConsoleBackedObjectAdapter(self.emulator_manager))