GameFinder
GameFinder will search through files on disc, grouping up by game which includes potential duplicate ROM files (e.g. games with slightly different names in different regions)
For more details on the GameFinder arguments, see the config file documentation.
API
- class romsearch.GameFinder(platform, config_file=None, config=None, default_config=None, regex_config=None, logger=None, log_line_sep='=', log_line_length=100)[source]
Tool to find games within a list of files
Will parse through files to get a unique list of games, then pull out potential aliases and optionally remove things from user excluded list
- Parameters:
platform (str) – Platform name
config_file (str, optional) – Path to config file. Defaults to None.
config (dict, optional) – Configuration dictionary. Defaults to None.
default_config (dict, optional) – Default configuration dictionary. Defaults to None.
regex_config (dict, optional) – Dictionary of regex config. Defaults to None.
logger (logging.Logger, optional) – Logger instance. Defaults to None.
log_line_length (int, optional) – Line length of log. Defaults to 100
- get_filter_dupes(games)[source]
Parse down a list of files based on an input dupe list
- get_game_dict(files)[source]
- get_game_matches(game_dict, games_to_match)[source]
Get files that match an input dictionary (so as to properly handle dupes
- Parameters:
game_dict (-) – Dictionary of games to match against
games_to_match (-) – List of values to match against
- run(files)[source]