def run(self, tasks, app_settings, dry_run=False): if self.steam is None: logger.error("Cannot run Ice because Steam doesn't appear to be installed") return logger.info("=========== Starting Ice ===========") for task in tasks: task(app_settings, self.users, dry_run=dry_run)
def run(self, tasks, app_settings, dry_run=False): if self.steam is None: logger.error( "Cannot run Ice because Steam doesn't appear to be installed") return logger.info("=========== Starting Ice ===========") for task in tasks: task(app_settings, self.users, dry_run=dry_run)
def run(self): if self.steam is None: logger.error("Cannot run Ice because Steam doesn't appear to be installed") return logger.info("=========== Starting Ice ===========") try: self.validate_environment(self.options.skip_steam_check) except EnvCheckerError as e: logger.info("Ice cannot run because of issues with your system.\n") logger.info("* %s" % e.message) logger.info("\nPlease resolve these issues and try running Ice again") return self.__roms = self.rom_finder.roms_for_consoles(self.app_settings.consoles) self.__init__gui() self.show() sys.exit(self.app.exec_())
def run(self, tasks, skip_steam_check=False, dry_run=False): if self.steam is None: logger.error("Cannot run Ice because Steam doesn't appear to be installed") return logger.info("=========== Starting Ice ===========") try: self.validate_environment(skip_steam_check) except EnvCheckerError as e: logger.info("Ice cannot run because of issues with your system.\n") logger.info("* %s" % e.message) logger.info("\nPlease resolve these issues and try running Ice again") return roms = self.rom_finder.roms_for_consoles(self.app_settings.consoles) for task in tasks: task(self.users, roms, dry_run=dry_run)
def main(self, dry_run=False): if self.steam is None: logger.error("Cannot run Ice because Steam doesn't appear to be installed") return logger.info("=========== Starting Ice ===========") try: self.validate_base_environment() self.validate_configuration(self.config) except EnvCheckerError as e: logger.info("Ice cannot run because of issues with your system.\n") logger.info("* %s" % e.message) logger.info("\nPlease resolve these issues and try running Ice again") return # TODO: Create any missing directories that Ice will need log_configuration(self.config) for user_context in steam.local_user_contexts(self.steam): logger.info("=========== User: %s ===========" % str(user_context.user_id)) self.run_for_user(user_context, dry_run=dry_run)
def run(self, tasks, skip_steam_check=False, dry_run=False): if self.steam is None: logger.error( "Cannot run Ice because Steam doesn't appear to be installed") return logger.info("=========== Starting Ice ===========") try: self.validate_environment(skip_steam_check) except EnvCheckerError as e: logger.info("Ice cannot run because of issues with your system.\n") logger.info("* %s" % e.message) logger.info( "\nPlease resolve these issues and try running Ice again") return roms = self.rom_finder.roms_for_consoles(self.app_settings.consoles) for task in tasks: task(self.users, roms, dry_run=dry_run)
def main(self, dry_run=False): if self.steam is None: logger.error( "Cannot run Ice because Steam doesn't appear to be installed") return logger.info("=========== Starting Ice ===========") try: self.validate_base_environment() self.validate_configuration(self.config) except EnvCheckerError as e: logger.info("Ice cannot run because of issues with your system.\n") logger.info("* %s" % e.message) logger.info( "\nPlease resolve these issues and try running Ice again") return # TODO: Create any missing directories that Ice will need log_configuration(self.config) for user_context in steam.local_user_contexts(self.steam): logger.info("=========== User: %s ===========" % str(user_context.user_id)) self.run_for_user(user_context, dry_run=dry_run)
def verify(self, emulator): if emulator.location is None or emulator.location == "": logger.error("Missing location for Emulator: `%s`" % emulator.name) return False if not self.filesystem.is_file(emulator.location): logger.error("Could not find a file at `%s`, which is set as the " \ "location for `%s`." % (emulator.location, emulator.name)) logger.error("Launching your game in Steam might not work.") # It seems like we would return False here, but since this is a common # source of confusion, if people want to shoot themselves in the foot we # should let them. Just make sure they know they're doing it. return True
def new(self, backing_store, identifier): name = identifier location = backing_store.get(identifier, 'location') fmt = backing_store.get(identifier, 'command', "%l %r") location = os.path.expanduser(location) if location is None: logger.error("Missing location for Emulator: `%s`" % name) if not self.filesystem.path_exists(location): logger.error("Could not find a file at `%s`, which is set as the location for `%s`." % (location, name)) logger.error("Launching your game in Steam might not work.") return Emulator( name, location, fmt, )
def new(self, backing_store, identifier): name = identifier location = backing_store.get(identifier, 'location') fmt = backing_store.get(identifier, 'command', "%l %r") location = os.path.expanduser(location) if location is None: logger.error("Missing location for Emulator: `%s`" % name) if not self.filesystem.path_exists(location): logger.error( "Could not find a file at `%s`, which is set as the location for `%s`." % (location, name)) logger.error("Launching your game in Steam might not work.") return Emulator( name, location, fmt, )
def handle_exception(e, fatal): # Just log it if fatal: logger.exception("An exception occurred while running Ice") else: logger.error(e.message)