Exemplo n.º 1
0
 def is_functional(self):
     """
     This emulator is only functional if the user has provided a BIOS.
     """
     # We will do a check for the bios before we do anything else
     self.__check_for_user_supplied_bios__()
     # If there is a bios set up for the emulator, then we are in good shape
     if os.path.exists(self.emulator_bios_location()):
         return True
     # If we get to this point, then the file doesn't exist. We should make
     # a note that this emulator isn't available, and return False
     missing_bios_options = (self._console_name_,self._bios_name_,self._console_name_,self.user_supplied_bios_filename())
     missing_bios_message = "%s emulator is missing a required BIOS. Please find the bios named '%s' and put it in the %s roms directory under the name '%s'" % missing_bios_options
     log_user(missing_bios_message)
Exemplo n.º 2
0
 def is_functional(self):
     """
     This emulator is only functional if the user has provided a BIOS.
     """
     # We will do a check for the bios before we do anything else
     self.__check_for_user_supplied_bios__()
     # If there is a bios set up for the emulator, then we are in good shape
     if os.path.exists(self.emulator_bios_location()):
         return True
     # If we get to this point, then the file doesn't exist. We should make
     # a note that this emulator isn't available, and return False
     missing_bios_options = (self._console_name_, self._bios_name_,
                             self._console_name_,
                             self.user_supplied_bios_filename())
     missing_bios_message = "%s emulator is missing a required BIOS. Please find the bios named '%s' and put it in the %s roms directory under the name '%s'" % missing_bios_options
     log_user(missing_bios_message)
Exemplo n.º 3
0
Arquivo: ice.py Projeto: rrfenton/Ice
            continue
        rom_manager = IceROMManager(shortcuts_manager)
        # Add the new ROMs in each folder to our Shortcut Manager
        rom_manager.sync_roms(roms)
        # Generate a new shortcuts.vdf file with all of the new additions
        shortcuts_manager.save()
        log_both("---Downloading grid images")
        grid_manager.update_user_images(user_id, roms)
    log_both("=========================Finished")


if __name__ == "__main__":
    try:
        main()
    except ConfigError as error:
        log_user("=========================Stopping\n")
        log_file("!!!Error was Users' fault. Don't worry about it")
        log_both("There was a problem with '%s' in config.txt" %
                 error.referenced_config)
        log_both(error.fix_instructions)
        log_file("!!!")
    except StandardError as error:
        log_both("####################################")
        log_both("An Error has occurred:")
        log_both(error)
        log_exception()
        log_both("####################################")
    # Keeps the console from closing (until the user hits enter) so they can
    # read any console output
    print ""
    print "Close the window, or hit enter to exit..."
Exemplo n.º 4
0
Arquivo: ice.py Projeto: waytai/Ice
        rom_manager = IceROMManager(shortcuts_manager)
        # Add the new ROMs in each folder to our Shortcut Manager
        rom_manager.sync_roms(roms)
        # Generate a new shortcuts.vdf file with all of the new additions
        shortcuts_manager.save()
        if IceGridImageManager.should_download_images():
            log_both("---Downloading grid images")
            grid_manager.update_user_images(user_id,roms)
        else:
            log_both("Skipping 'Download Image' step")
    log_both("=========================Finished")
        
if __name__ == "__main__":
    try:
        main()
    except ConfigError as error:
        log_user("=========================Stopping\n")
        log_config_error(error)
        log_exception()
        log_file("!!!")
    except StandardError as error:
        log_both("####################################")
        log_both("An Error has occurred:")
        log_both(error)
        log_exception()
        log_both("####################################")
    # Keeps the console from closing (until the user hits enter) so they can
    # read any console output
    print ""
    print "Close the window, or hit enter to exit..."
    raw_input()