Beispiel #1
0
def main():
    if steam_is_running():
        log_both("Ice cannot be run while Steam is open. Please close Steam and try again")
        return
    log_both("=========================Starting Ice")
    fs.create_directory_if_needed(fs.roms_directory(), log="Creating ROMs directory at %s" % fs.roms_directory())
    # Find all of the ROMs that are currently in the designated folders
    roms = console.find_all_roms()
    # Find the Steam Account that the user would like to add ROMs for
    user_ids = steam_user_manager.user_ids_on_this_machine()
    grid_manager = IceGridImageManager()
    for user_id in user_ids:
        log_both("---------------Running for user %s" % str(user_id))
        # Load their shortcuts into a SteamShortcutManager object
        shortcuts_path = steam_user_manager.shortcuts_file_for_user_id(user_id)
        shortcuts_manager = SteamShortcutManager(shortcuts_path)
        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")
Beispiel #2
0
 def user_supplied_bios_location(self):
     """
     The user supplied bios should be in ROMs directory for a given console,
     and should be named what user_supplied_bios_filename describes
     
     Example...
     Windows: C:\Users\Scott\ROMs\PS1\PS1_bios.bin
     Mac OS X: /Users/scottrice/ROMs/PS1/PS1_bios.bin
     """
     return os.path.join(filesystem_helper.roms_directory(),self._console_name_,self.user_supplied_bios_filename())
Beispiel #3
0
 def user_supplied_bios_location(self):
     """
     The user supplied bios should be in ROMs directory for a given console,
     and should be named what user_supplied_bios_filename describes
     
     Example...
     Windows: C:\Users\Scott\ROMs\PS1\PS1_bios.bin
     Mac OS X: /Users/scottrice/ROMs/PS1/PS1_bios.bin
     """
     return os.path.join(filesystem_helper.roms_directory(),
                         self._console_name_,
                         self.user_supplied_bios_filename())