ROMMover

ROMMover will move the final chosen ROM files to a clean directory structure, optionally unzipping files along the way.

For more details on the ROMMover arguments, see the config file documentation.

API

class romsearch.ROMMover(platform, game, config_file=None, config=None, platform_config=None, logger=None)[source]

ROM Moving and cache updating tool

Because we do this per-platform, per-game, they need to be specified here

Parameters:
  • platform (str) – Platform name

  • game (str) – Game name

  • config_file (str, optional) – path to config file. Defaults to None.

  • config (dict, optional) – configuration dictionary. Defaults to None.

  • platform_config (dict, optional) – platform configuration dictionary. Defaults to None.

  • logger (logging.Logger, optional) – logger. Defaults to None.

cache_update(file, rom_dict)[source]

Update the cache with new file data

move_file(zip_file_name, unzip=False, delete_folder=False)[source]

Move file to directory structure, optionally unzipping

move_roms(rom_dict)[source]

Actually move the roms

run(rom_dict)[source]
save_cache()[source]

Save out the cache file