ROMMover
ROMMover will move the final chosen ROM files to a clean directory structure, optionally unzipping files along the way.
If a patch file is found and ROMPatcher is turned on, then the file will also be patched at this stage.
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, log_line_sep='=', log_line_length=100)[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.
log_line_length (int, optional) – Line length of log. Defaults to 100
- 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